Skip to content

Instantly share code, notes, and snippets.

Created July 8, 2014 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/fa4d1960e2ccdf4e521a to your computer and use it in GitHub Desktop.
Save anonymous/fa4d1960e2ccdf4e521a to your computer and use it in GitHub Desktop.
"/var/log/audit/audit.log" {
daily
rotate 7
missingok
notifempty
copytruncate
compress
lastaction
s3cmd --config /root/.s3cfg put /var/log/audit/audit.log.1.gz s3://mnp-logs/auditd/`date "+%Y/%m/%d"`/auditd.log-`date "+%Y-%m-%d"`-`hostname`.gz > /dev/null
endscript
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment