{{tag>logging rsyslog}} ====== 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 [[https://go.dev/|go]] ====== See also ====== * [[wiki:shorewall_custom_logging|Shorewall custom logging]] ====== References ====== * https://www.rsyslog.com/doc/v8-stable/configuration/properties.html