Simple configuration and use of Linux Logwatch

Source: Internet
Author: User

"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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.