** Description changed:

  Hello
  
  I want to remove duplicate entries in the syslog and kern.log files.
  It doesn't work by enabling these options
  
  ForwardToSyslog=no
  ForwardToKMsg=no
  ReadKMsg=no
  
- in the file grep -v "#" /etc/systemd/journald.conf
+ in the file /etc/systemd/journald.conf
  
  See below
  
  a@b:~$ grep -v "#" /etc/systemd/journald.conf
  
  [Journal]
  ForwardToSyslog=no
  ForwardToKMsg=no
  ReadKMsg=no
- a@b:~$ 
+ a@b:~$
  
  a@b:~$ wc -l /var/log/kern.log
  897 /var/log/kern.log
  a@b:~$ wc -l /var/log/syslog
  1621 /var/log/syslog
- a@b:~$ 
+ a@b:~$
  
  I have been using this trick for several years
  sudo sed -ri 's/^(\*\.\*;auth,authpriv\.none)/#\1/;s/^(kern\.\*)/#\1/' 
/etc/rsyslog.d/50-default.conf.
  
  Please let me know if this is the correct way to do this (  Now Ubuntu
  24.04.3).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2122061

Title:
    duplicate writing of the journaling

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/2122061/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to