"description"
Logwatch is a log analysis tool developed using Perl
Logwatch can analyze the log files of Linux and automatically send mail to relevant handlers to customize the requirements
The mail function of the Logwatch is sent by mail server that comes with the host system, such as Sendmail,postfix,qmail, etc.
Configuration
Because the system already supports the service by default, it is as simple as the configuration.
To modify the default configuration file:
VI /usr/share/logwatch/default.conf/logwatch.conf
1, put " Mailto=root "root changes to the email address you want to receive, and multiple addresses can be separated by commas.
Example: MailTo = [email protected]****.com,[email protected]****.com
2. Change the contents of "Mailfrom =" to the name you want, which is the sender's name.
3, usually modify the above two content is enough, if you receive the mail, you can consider changing the following configuration:
mailer = "/usr/sbin/sendmail-t"
As shown above, plus the path "/usr/sbin/", some versions may be required.
Note:Logwatch mail is sent by default one day, the default time is 04:00.
Simple configuration and use of Linux Logwatch