Rules Related To 'syslog-ng'

Component overview

Relevant packages:

Relevant groups:

None

Changelog:

No changes recorded.

Relevant rules:

Rule details

Ensure syslog-ng is Installed

package_syslogng_installed

Description

syslog-ng can be installed in replacement of rsyslog. The syslog-ng-core package can be installed with the following command:

$ sudo yum install syslog-ng-core

Rationale

The syslog-ng-core package provides the syslog-ng daemon, which provides system logging services.

Enable syslog-ng Service

service_syslogng_enabled

Description

The syslog-ng service (in replacement of rsyslog) provides syslog-style logging by default on Debian. The syslog-ng service can be enabled with the following command:

$ sudo systemctl enable syslog-ng.service

Rationale

The syslog-ng service must be running in order to provide logging services, which are essential to system administration.

Ensure syslog-ng Default File Permissions Configured

syslogng_filecreatemode

Description

syslog-ng will create logfiles that do not already exist on the system. The perm() option in the global options block controls what permissions will be applied to these newly created files.

Rationale

It is important to ensure that log files have the correct permissions to ensure that sensitive data is archived and protected.

Ensure syslog-ng Does Not Accept Remote Messages Unless Acting As Log Server

syslogng_nolisten

Description

The syslog-ng daemon should not accept remote messages unless the system acts as a log server. To ensure that it is not listening on the network, verify that none of the following source driver calls appear uncommented in syslog-ng configuration files:

tcp()
udp()
network()

Rationale

Any process which receives messages from the network incurs some risk of receiving malicious messages. This risk can be eliminated for syslog-ng by configuring it not to listen on the network.