Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What order does rsyslog process configuration files in /etc/rsyslog.d?

Tags:

rsyslog

I have several configuration files in /etc/rsyslog.d, e.g., 01-templates.conf, 02-error-logs.conf, 03-system-logs.conf, and have the following line in my /etc/rsyslog.conf file

# Include all config files in /etc/rsyslog.d/
$IncludeConfig /etc/rsyslog.d/*.conf

What order do the /etc/rsyslog.d/*.conf files get loaded in? Where is this documented? I read the Rsyslog configuration page but did not see it.

like image 264
Chris F Avatar asked Aug 31 '16 15:08

Chris F


People also ask

What is ETC rsyslog D?

The /etc/syslog. conf and /etc/rsyslog. conf files are used to control the output of the syslogd daemon log files, which Cluster Aware AIX uses to log the debug information and PowerHA® SystemMirror® uses to log the non-critical information. During the installation process, PowerHA SystemMirror reads the subsystem.

How does rsyslog Conf work?

Rsyslog is a powerful, secure and high-performance log processing system which accepts data from different types of source (systems/applications) and outputs it into multiple formats. It has evolved from a regular syslog daemon to a fully-featured, enterprise level logging system.

What is in rsyslog D in Linux?

Rsyslogd is a system utility providing support for message logging. Support of both internet and unix domain sockets enables this utility to support both local and remote logging.

What is rsyslog and how it works?

rsyslog is the default logging program in Debian and Red Hat. It is an extension of the original syslog protocol, with additional features such as flexible configuration, rich filtering capabilities and content-based filtering.


1 Answers

According to this and this post to the rsyslog-users mailing list, it's processed in alphabetical order.

But with the exception of some 7.2.x and 7.3.x versions where a bug caused them to be read in reverse order.

like image 136
antak Avatar answered Oct 01 '22 08:10

antak