Skip to content

Instantly share code, notes, and snippets.

@mkay
Created June 26, 2013 11:55
Show Gist options
  • Save mkay/5866845 to your computer and use it in GitHub Desktop.
Save mkay/5866845 to your computer and use it in GitHub Desktop.
colour scheme for monitoring exim4 via /var/log/exim4/mainlog, using grc (http://kassiopeia.juls.savba.sk/~garabik/software/grc/)
# exim/mainlog conf for grc
# installation: save as /usr/share/grc/conf.exim
# usage: grc -c conf.exim tail -f /var/log/exim4/mainlog
regexp==> *[^ ]*
colours=green
count=more
======
regexp=<= *[^ ]*
colours=green
count=more
======
regexp==> *[^ ]* <[^>]*>
colours=green
count=more
======
regexp=<= *[^ ]* <[^>]*>
colours=green
count=more
======
regexp=<=
colours=magenta
count=more
======
regexp= =>
colours=magenta
count=more
======
regexp=^....-..-.. ..:..:..
colours=cyan
count=more
======
regexp=:
colours=white
count=more
======
regexp=H=[^ ]*
colours=yellow
count=more
======
regexp=verify failed for SMTP recipient.*
colours=red
count=more
======
regexp=SMTP.*timeout.*
colours=red
count=more
======
regexp=Spool file is locked (another process is handling this message)
colours=yellow
count=more
======
regexp=Connection refused
colours=red
count=more
======
regexp=T="[^\n]*
colours=blue
count=more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment