From: robin_listas@es.invalid   
      
   On 2026-01-20 09:37, Richard Kettlewell wrote:   
   > "Carlos E.R." writes:   
   >> On 2026-01-20 00:05, Richard Kettlewell wrote:   
   >>> Not 100% clear what you’re asking but wouldn’t journalctl --unit=   
   >>> with the unit(s) you care about be sufficient?   
   >>   
   >> No. I have to provide all units for a report. I remove those that are   
   >> private or irrelevant, like news.   
   >   
   > Right, so all units except the ones you don’t care about. Same thing,   
   > just phrased differently.   
      
   Using units is impossible.   
      
   cer@Telcontar:~> journalctl --field=_SYSTEMD_UNIT | wc -l   
   5433   
   cer@Telcontar:~>   
      
   Imagine the command line listing all those five thousand units.   
      
   We tried several concoctions, and the command that worked best was this:   
      
   journalctl --boot=-2 --facility=kern,user,daemon,auth,syslog,lpr   
   uucp,cron,authpriv,ftp,12,13,14,15,local0,local1,local2,local3,l   
   cal4,local5,local6,local7 > journal_purged   
      
      
   Not units, but facilities. Problem is, there is no command to say "all   
   except...", instead you have to explicitly list all of them except those you   
   do not want to include.   
      
   And then there is another problem, that some entries do not have a facility   
   assigned, it got lost somewhere. They do have a facility when seen on syslog.   
   It is a systemd bug.   
      
   --   
   Cheers, Carlos.   
   ES🇪🇸, EU🇪🇺;   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|