Linux Logging Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 6: Line 6:


The main [[Linux Logging Concepts#rsyslogd|rsyslogd]] configuration file is /etc/rsyslog.conf.
The main [[Linux Logging Concepts#rsyslogd|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.


==rsyslogd Log Rotation Configuration==
==rsyslogd Log Rotation Configuration==

Revision as of 18:18, 25 June 2017

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.

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.