Page 1 of 1

retaining local maillog with nagios log server

Posted: Wed Mar 06, 2019 1:27 pm
by TexasSTX
One of our developers came to me and said that one of his jobs broke because he scans the /var/log/maillog for entries of incoming emails.

A quick glance at log server showed that NLS is shipping all the logs to the server instead of to the local logs defined in rsyslog.conf.

Is there a way to either exclude maillogs from NLS or, more preferably, have them ship to NLS and store locally?

Thanks!

Re: retaining local maillog with nagios log server

Posted: Wed Mar 06, 2019 5:22 pm
by scottwilkerson
do you have a file called /etc/rsyslog.d/90-nagioslogserver_var_log_maillog.conf on that server?

If so could you share its contents obfuscating any sensitive info?