Setting up and configuring Syslog-ng

By default, with the installation of CentOS 7, there will be Rsyslog installed for storing the log of the system and its applications. Luckily, we will have all our system log files stored and organized the way syslog wants. We will be using these log files with the installation of Syslog-ng, and we will have them organized in a more suitable way:

First, before starting the installation, we need to set up the EPEL repository:

$ sudo yum install epel-release

Tip

All of the upcoming package repository checking and application availability is optional. We can always proceed with the installation of Syslog-ng.

To verify that the EPEL repository has been added, we can use the following command:

$ sudo yum repolist ...

Get Mastering CentOS 7 Linux Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.