wiki:prevent_programm_from_logging_to_daemon.log
Table of Contents
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 12:34 by antisa