Linux Logging Configuration

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

rsyslogd Configuration

The main rsyslogd configuration file is /etc/rsyslog.conf.

The configuration file contains global directives, rules and modules. A rule consists of filter and action. The filters can be facility/priority-based, property-based and expression-based.

For more details on rsyslogd configuration see {{ExternalRHEL 7 System Administration Guide - Basic Configuration of rsyslog}}

rsyslogd Log Rotation Configuration

rsyslogd-managed log files can be automatically rotated. The logrotate package contains a cron task that rotates log files based on the configuration found in /etc/logrotate.conf and /etc/logrotate.d/.

journald Configuration

More details about journald.