MEWBIES@:  Facebook  Twitter  G+  YouTube  DeviantArt  Forum  Wall
 SHARE:
    ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
   ██                                                                       ██
  █▌                             -   LOGWATCH  -                             █▌
 █▌                                                                           █▌
 █                                                                            ▐▌
 █ Logwatch  is a "system log analyzer and reporter". Project page is HERE,   ▐▌
 █ man page is HERE. It is a very easy program to use. I have mine set up to  ▐▌
 █ e-mail daily a summary of the logs in an easy to read format.              ▐▌
 █                                                                            ▐▌
 █ PREREQUISITES:                                                             ▐▌
 █ ``````````````                                                             ▐▌
 █ A mailer program to send out-going mail if you want the reports e-mailed.  ▐▌
 █ I'm using exim, view my tutorial for it if you need to set up out-going    ▐▌
 █ mail HERE.                                                                 ▐▌
 █                                                                            ▐▌
 █ INSTALL LOGWATCH:                                                          ▐▌
 █ `````````````````                                                          ▐▌
 █ su                                                                         ▐▌
 █ View if you have the packages logwatch needs/recommends:                   ▐▌
 █ dpkg -l | grep -E 'perl|post|libdate|fortune'                              ▐▌
 █ apt-get update                                                             ▐▌
 █ Install logwatch including the packages that you don't have, for myself it ▐▌
 █ is:                                                                        ▐▌
 █ apt-get install logwatch libdate-manip-perl                                ▐▌
 █                                                                            ▐▌
 █ DOCS:                                                                      ▐▌
 █ `````                                                                      ▐▌
 █ logwatch --help                                                            ▐▌
 █ man logwatch                                                               ▐▌
 █ And the best one to read to get set up:                                    ▐▌
 █ gzip -d /usr/share/doc/logwatch/HOWTO-Customize-LogWatch.gz                ▐▌
 █ cat /usr/share/doc/logwatch/HOWTO-Customize-LogWatch                       ▐▌
 █ Since I do all this from Windows and there is much to read, I download the ▐▌
 █ package from HERE to get that file, or I've mirroed it HERE.               ▐▌
 █                                                                            ▐▌
 █ DEBIAN INSTALL NOTE:                                                       ▐▌
 █ ````````````````````                                                       ▐▌
 █ man page, logwatch docs, etc state that logwatch files are here:           ▐▌
 █ /etc/log.d/ & - For my Debian install I do not have log.d directory, and   ▐▌
 █ /etc/logwatch/ - this only contains empty subdirectories. This is fine, it ▐▌
 █ will still work without a problem. Read HERE for more input about this.    ▐▌
 █                                                                            ▐▌
 █ BASIC CONFIGURATIONS FOR LOGWATCH:                                         ▐▌
 █ ``````````````````````````````````                                         ▐▌
 █ Set to whom the report should be sent to and few other items:              ▐▌
 █ pico /usr/share/logwatch/default.conf/logwatch.conf                        ▐▌
 █ Or your install it might be here:                                          ▐▌
 █ pico /etc/logwatch/conf/logwatch.conf                                      ▐▌
 █ Read through it to set the basics, for example these are my changes:       ▐▌
 █ Output = stdout                                                            ▐▌
 █ Changed to:                                                                ▐▌
 █ Output = mail                                                              ▐▌
 █                                                                            ▐▌
 █ Format = text                                                              ▐▌
 █ Changed to:                                                                ▐▌
 █ Format = html                                                              ▐▌
 █                                                                            ▐▌
 █ #MailTo = root                                                             ▐▌
 █ Changed to:                                                                ▐▌
 █ MailTo = mewbies                                                           ▐▌
 █ Or you could input e-mail addresses separated by a space, for example:     ▐▌
 █ MailTo = mewbies@mewb1.com mewbies@mewb2.com                               ▐▌
 █                                                                            ▐▌
 █ Detail = Low                                                               ▐▌
 █ Changed to:                                                                ▐▌
 █ Detail = Med                                                               ▐▌
 █                                                                            ▐▌
 █ Save changes then to run it:                                               ▐▌
 █ logwatch                                                                   ▐▌
 █ If you want to watch the output instead of having it e-mailed to you then  ▐▌
 █ set 'Output = mail' line back to its default:                              ▐▌
 █ Output = stdout                                                            ▐▌
 █ Leaving 'Output = stdout' will still have the daily reports e-mailed out   ▐▌
 █ tho.                                                                       ▐▌
 █                                                                            ▐▌
 █ If you don't receive mail as expected, trouble shoot in your config and    ▐▌
 █ here:                                                                      ▐▌
 █ tail /var/log/mail.log                                                     ▐▌
 █ tail /var/log/mail.info                                                    ▐▌
 █                                                                            ▐▌
 █ Done, it's that easy, you'll now receive daily reports.                    ▐▌
 █                                                                            ▐▌
 █ HAVE ROOT'S E-MAIL SENT TO ANOTHER ACCOUNT:                                ▐▌
 █ ```````````````````````````````````````````                                ▐▌
 █ 'MailTo = mewbies' setting above will actually e-mail to an account that I ▐▌
 █ have specified for root by doing this:                                     ▐▌
 █ pico /etc/aliases                                                          ▐▌
 █ The last line where it has:                                                ▐▌
 █ root: admnin1                                                              ▐▌
 █ Change to your user name, for example:                                     ▐▌
 █ root: mewbies                                                              ▐▌
 █ Or you could assign an e-mail:                                             ▐▌
 █ root: youremail@whatever.com                                               ▐▌
 █ Or both:                                                                   ▐▌
 █ root: mewbies, youremail@whatever.com                                      ▐▌
 █                                                                            ▐▌
 █ PER PROGRAM CONFIGURATIONS:                                                ▐▌
 █ ```````````````````````````                                                ▐▌
 █ Applications conf files are here:                                          ▐▌
 █ ls -al /usr/share/logwatch/default.conf/logfiles/                          ▐▌
 █ and                                                                        ▐▌
 █ ls -al /usr/share/logwatch/default.conf/services/                          ▐▌
 █                                                                            ▐▌
 █ If you want to change any of their settings, for example exim, take a look ▐▌
 █ at their conf files:                                                       ▐▌
 █ pico /usr/share/logwatch/default.conf/logfiles/exim.conf                   ▐▌
 █ pico /usr/share/logwatch/default.conf/services/exim.conf                   ▐▌
 █                                                                            ▐▌
 █ //----------------------------------------------------------------------   ▐▌
 █                                                                            ▐▌
 █ If you find mistakes, have suggestions, and or questions please post at    ▐▌
 █ mewbies forum HERE - thank you.                                            ▐▌
 █                                                                            ▐▌
 █ Last update on 13 Jul '10                                                  ▐▌
 █                                                                            ▐▌
 █▌                                                                           █▌
  █▌                          -   mewbies.com   -                            █▌
   █▌                                                                       █▌
    ██▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄██