$MaxMessageSize 4096

$ModLoad omfwd

# import logs from journal
$ModLoad imjournal
$imjournalRatelimitInterval 1
$imjournalRatelimitBurst 20000
$imjournalPersistStateInterval 100
$imjournalStateFile /var/lib/rsyslog/imjournal.state

# setting escaping off to make it possible to remove the control characters
$EscapeControlCharactersOnReceive off

# removing the optimization from use (it slows things down)
$OptimizeForUniprocessor off

# Using queue for 20000 messages. After that the messages are dropped instantly
$MainMsgQueueSize 20000
$MainMsgQueueTimeoutEnqueue 0


*.* /var/log/rsyslog-local

$IncludeConfig /etc/rsyslog-local.d/*.conf

