Skip to content

Instantly share code, notes, and snippets.

@devoncrouse
Created July 30, 2013 19:47
Show Gist options
  • Save devoncrouse/6116270 to your computer and use it in GitHub Desktop.
Save devoncrouse/6116270 to your computer and use it in GitHub Desktop.
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog # provides kernel logging support
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
$FileOwner root
$FileGroup root
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$WorkDirectory /var/spool/rsyslog
$IncludeConfig /etc/rsyslog.d/*.conf
:msg, contains, "iptables: " -/var/log/iptables.log
& ~
auth,authpriv.* /var/log/auth.log
& ~
*.* @@logs.loggly.com:36588
mail.* -/var/log/mail.log
& ~
cron.* /var/log/cron.log
& ~
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
*.* -/var/log/everything.log
*.emerg :omusrmsg:*
*.err;*.emerg -/var/log/errors.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment