Linux Logging Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 9: Line 9:
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.
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 {{External[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/s1-basic_configuration_of_rsyslog.html RHEL 7 System Administration Guide - Basic Configuration of rsyslog]}}
For more details on rsyslogd configuration see {{External|[https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/System_Administrators_Guide/s1-basic_configuration_of_rsyslog.html RHEL 7 System Administration Guide - Basic Configuration of rsyslog]}}


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

Revision as of 18:23, 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.

For more details on rsyslogd configuration see

RHEL 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.