-
-
Save anonymous/8598df621f9b85c4db99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/log/syslog | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/syslog.2.gz s3://mnp-logs/syslog/`date "+%Y/%m/%d"`/syslog-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/mail.info | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/mail.info.2.gz s3://mnp-logs/mail.info/`date "+%Y/%m/%d"`/mail.info-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/mail.warn | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/mail.warn.2.gz s3://mnp-logs/mail.warn/`date "+%Y/%m/%d"`/mail.warn-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/mail.err | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/mail.err.2.gz s3://mnp-logs/mail.err/`date "+%Y/%m/%d"`/mail.err-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/mail.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/mail.log.2.gz s3://mnp-logs/mail.log/`date "+%Y/%m/%d"`/mail.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/daemon.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/daemon.log.2.gz s3://mnp-logs/daemon.log/`date "+%Y/%m/%d"`/daemon.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/kern.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/kern.log.2.gz s3://mnp-logs/kern.log/`date "+%Y/%m/%d"`/kern.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/auth.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/auth.log.2.gz s3://mnp-logs/auth.log/`date "+%Y/%m/%d"`/auth.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/user.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/user.log.2.gz s3://mnp-logs/user.log/`date "+%Y/%m/%d"`/user.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/lpr.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/lpr.log.2.gz s3://mnp-logs/lpr.log/`date "+%Y/%m/%d"`/lpr.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/cron.log | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/cron.log.2.gz s3://mnp-logs/cron.log/`date "+%Y/%m/%d"`/cron.log-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/debug | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/debug.2.gz s3://mnp-logs/debug/`date "+%Y/%m/%d"`/debug-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} | |
/var/log/messages | |
{ | |
rotate 7 | |
daily | |
missingok | |
notifempty | |
delaycompress | |
compress | |
lastaction | |
s3cmd --config /root/.s3cfg put /var/log/messages.2.gz s3://mnp-logs/messages/`date "+%Y/%m/%d"`/messages-`date "+%Y-%m-%d"`-`hostname`.gz | |
endscript | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment