Skip to content

Instantly share code, notes, and snippets.

@mrballcb
Created September 6, 2013 12:50
Show Gist options
  • Save mrballcb/6463343 to your computer and use it in GitHub Desktop.
Save mrballcb/6463343 to your computer and use it in GitHub Desktop.
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