Created
September 6, 2013 12:50
-
-
Save mrballcb/6463343 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is on a machine named ivlog52, and it is a central logging server for several exim machines | |
$ cat /etc/rsyslog.d/exim_logging.conf | |
local1.* /disk1/log/imapd.log | |
if $fromhost == 'ivlog52' and $syslogfacility-text == 'mail' then /var/log/maillog | |
# Should possibly look for 'not info and not notice and not alert' | |
if $fromhost != 'ivlog52' and $syslogfacility-text == 'mail' and $syslogseverity-text == 'info' then /disk1/log/exim/main.log | |
if $fromhost != 'ivlog52' and $syslogfacility-text == 'mail' and $syslogseverity-text == 'notice' then /disk1/log/exim/reject.log | |
if $fromhost != 'ivlog52' and $syslogfacility-text == 'mail' and $syslogseverity-text == 'alert' then /disk1/log/exim/panic.log | |
# Testing remote logging filters | |
#local6.* /disk1/log/testing.log | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment