rsyslog.conf configuration file
Rsyslog is configured via the rsyslog.conf file, typically found in /etc. By default, rsyslogd reads the file /etc/rsyslog.conf. This may be changed by command line option "-f".
Configuration file examples can be found in the rsyslog wiki. Also keep the rsyslog config snippets on your mind. These are ready-to-use real building blocks for rsyslog configuration.
While rsyslogd contains enhancements over standard syslogd, efforts have been made to keep the configuration file as compatible as possible. While, for obvious reasons, enhanced features require a different config file syntax, rsyslogd should be able to work with a standard syslog.conf file. This is especially useful while you are migrating from syslogd to rsyslogd.
Follow the links below to learn more about specific topics:
- Basic Structure
- Properties and the Property Replacer
- Filter Conditions
- Actions (legacy format)
- Output Channels
- Legacy Configuration Directives
- sysklogd compatibility