aquaballoon

Monitor System Logs with Logwatch

Apr 6th, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. apt-get install logwatch
  2.  
  3. /usr/share/logwatch/default.conf/logwatch.conf
  4. Output = mail
  5. Format = html
  6. MailTo = myemail@mydomain.com
  7. MailFrom = logwatch@mydomain.com
  8.  
  9. logwatch
  10.  
  11. crontab -e
  12. # m h dom mon dow   command
  13. 0 1  * * *          /usr/sbin/logwatch
Add Comment
Please, Sign In to add comment