# Sample Metalog configuration file 

maxsize  = 10000000
maxtime  = 604800
maxfiles = 5

Kernel messages :

  facility = "kern"
  regex="^\s?[^I]"
  logdir   = "/var/log/kernel"

Crond :

  program  = "crond"
  logdir   = "/var/log/crond"
  
Dudes firewalled by IPTrap :

  program  = "iptrap"
  logdir   = "/var/log/iptrap"

Password failures :

  regex    = "(password|login|authentication)\s+(fail|invalid)"
  regex    = "(failed|invalid)\s+(password|login|authentication)"
  regex    = "ILLEGAL ROOT LOGIN"
  logdir   = "/var/log/pwdfail"
#  command  = "/usr/local/sbin/mail_pwd_failures.sh"  

iptables messages :

  facility = "kern"
  regex    = "IN"
  logdir   = "/var/log/iptables"

FTP Server :

  program  = "wu-ftpd"
  logdir   = "/var/log/ftpd"
  
SSH Server :

  program  = "sshd"
  logdir   = "/var/log/sshd"

Telnet :

  program  = "login"
  logdir   = "/var/log/telnet"

Imap :

  program  = "/usr/sbin/imapd"
  logdir   = "/var/log/imap"

POP Toaster :

  program  = "/usr/sbin/ipop3d"
  logdir   = "/var/log/pop"

#Add authenticated IP addresses for SMTP relaying :

#  program  = "/usr/sbin/ipop3d"
#  regex    = "Login.+nmsgs="
#  command  = "/usr/local/sbin/add_pop_address.sh"

Mail :

  facility = "mail"
  logdir   = "/var/log/mail"

Everything important :

  facility = "*"
  regex="^\s?[^I]"
  minimum  = 6
  logdir   = "/var/log/everything"

Everything very important :

  facility = "*"
  regex="^\s?[^I]"
  minimum  = 1
  logdir   = "/var/log/critical"
