Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apt install -y rsyslog
- mcedit /etc/logrotate.d/rsyslog
- /var/log/syslog
- /var/log/mail.info
- /var/log/mail.warn
- /var/log/mail.err
- /var/log/mail.log
- /var/log/daemon.log
- /var/log/kern.log
- /var/log/auth.log
- /var/log/user.log
- /var/log/lpr.log
- /var/log/cron.log
- /var/log/debug
- /var/log/messages
- {
- rotate 7
- size 20M
- missingok
- notifempty
- compress
- delaycompress
- sharedscripts
- postrotate
- /usr/lib/rsyslog/rsyslog-rotate
- endscript
- }
- ------------------------------------------------------------------
- service rsyslog restart
- ------------------------------------------------------------------
- crontab -e
- * * * * * /usr/sbin/logrotate /etc/logrotate.conf
- -----------------------------------------------------------------
- tail -f /var/log/syslog | grep CRON
- -----------------------------------------------------------------
- ls -lh /var/log/syslog
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement