User Tools

Site Tools


wiki:prevent_programm_from_logging_to_daemon.log

Prevent programm from logging to daemon.log

If you have a programm that is constantly writing to /var/log/daemon.log you can prevent it like this.

Example of log message:

Mar  4 13:23:54 serverhostname annoyingprogramm[596417]: 2022/03/04 13:23:54 Found connection for client 

Make a new file in /etc/rsyslog.d/annoyingprogramm.conf containing this:

:programname, contains, "annoyingprogramm" stop

Restart rsyslog

systemctl restart rsyslog.service

Tested on

  • Debian 11
  • Programm written in go

See also

References

wiki/prevent_programm_from_logging_to_daemon.log.txt · Last modified: 2022/03/04 13:34 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki