Configuration¶
Rsyslogd is configured via the rsyslog.conf file, typically found in
/etc
. By default, rsyslogd reads the file /etc/rsyslog.conf
.
This can be changed by a command line option.
Note that configurations can be built interactively via the online rsyslog configuration builder tool.
- Configuration Formats
- sysklogd format
- DESCRIPTION
- SELECTORS
- ACTIONS
- EXAMPLES
- CONFIGURATION FILE SYNTAX DIFFERENCES
- BUGS
- Basic Structure
- Templates
- rsyslog Properties
- The Property Replacer
- Filter Conditions
- RainerScript
- Actions
- Input
- Parser
- timezone
- Examples
- Legacy Configuration Directives
- rsyslog statistic counter
- Modules
- Output Channels
- Dropping privileges in rsyslog
- Notes on IPv6 Handling in Rsyslog
- libgcrypt Log Crypto Provider (gcry)
- Dynamic Stats
- Lookup Tables
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.
There is also one sample file provided together with the documentation
set. If you do not like to read, be sure to have at least a quick look
at rsyslog-example.conf
.
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.
See also
If you would like to contribute to these docs, but are unsure where to start, please see the rsyslog-doc project README for an overview of the process. If you would like to contribute to the main source project, please review the contribution guidelines listed in the rsyslog project README.
If you have a question about these docs or Rsyslog
in general, please
see the following resources: