TransWikia.com

how to avoid logging to /var/log/syslog for a given application?

Server Fault Asked by downtheroad on November 27, 2020

I have an application which successfully logs (via local0) to its own files, the problem is that it keeps logging to /var/log/syslog, which is what I want to avoid.

rsyslog version: rsyslogd  8.1901.0 (aka 2019.01)

In /etc/rsyslog.conf I have tried (one line at time):

*.*;auth,authpriv.none;local0.none      -/var/log/syslog
*.*;local0.none;auth,authpriv.none      -/var/log/syslog
*.*;auth,authpriv,local0.none       -/var/log/syslog
*.*;auth,authpriv.none;local0.!*        -/var/log/syslog

but /var/log/syslog keeps logging local0 entries.

After every change that I’ve tried I restart rsyslog with sudo systemctl restart rsyslog

What am I missing?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP