25th Anniversary Savings | 25% Off Dedicated Servers*Shop Now
25th Anniversary Savings | 25% Off VPS Hosting* †††Shop Now
Dedicated Hosting Deals | From $99/moShop Now
Earn hosting credits and a chance to win an Amazon gift card when you refer friends to Liquid Web!Read our promo rules

How to Install Logwatch on CentOS 7

Reading Time: < 1 minute

Logwatch is a Perl-based log management tool for analyzing, summarizing, and reporting on a server’s log files. It is most often used to send a short digest of server’s log activity to a system administrator.

What are log files? Logs are application-generated files useful for tracking down and understanding what has happened in the past.

Pre-Flight Check
  • These instructions are intended specifically for installing the Logwatch on CentOS 7.
  • I’ll be working from a Liquid Web Core Managed CentOS 7 server, and I’ll be logged in as root.

Step 1: Install Logwatch

As a matter of best practice we’ll update our packages:

yum -y update

Then let’s install Logwatch and any required packages:

yum -y install logwatch

Step 2: Configuration File Locations

Local Configuration Options can be found in:

/etc/logwatch/conf/logwatch.conf

Default Configuration Options can be found in:

/usr/share/logwatch/default.conf/logwatch.conf

It is best practice to leave the Default Configuration as is, and edit the Local Configuration option, which is under /etc as listed above.

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

How to Install Adminer MySQL Database Management Tool on AlmaLinux

Read Article

What is CGI-Bin and What Does it Do?

Read Article

Top 10 Password Security Standards

Read Article

Top 10 Password Security Standards

Read Article

How to Use the WP Toolkit to Secure and Update WordPress

Read Article