Convert basic rsyslog forwarder config to new syntax issue
Posted: Tue Oct 12, 2021 5:12 pm
Hi,
Since we're now on RHEL 7.9 and rsyslog 8.24 with a fairly stable new syntax, I'd like to convert the forwarder from the old syntax to the new. Here's an example of old syntax in use.
$WorkDirectory /var/lib/rsyslog # Where spool files will exist
$ActionQueueFileName FwdRule01 # Unique name prefix for spool files
$ActionQueueMaxDiskSpace 1g # 1GB space limit (use as much as possible)
$ActionQueueSaveOnShutdown on # Save messages to disk on shutdown
$ActionQueueType LinkedList # Use asynchronous processing
$ActionResumeRetryCount -1 # Infinite retries if host is down
*.* @@[2001:4888:a03:3161:c0:9:0:100]:5544
And what I'm trying to use as the new syntax. This is pretty much lifterd from RHEL documentation in the link. https://access.redhat.com/documentation ... log_queues
global(
parser.dropTrailingLFOnReception="on"
parser.escapeControlCharactersOnReceive="on"
workDirectory="/var/lib/rsyslog"
)
*.* action(
type="omfwd"
queue.type="linkedlist"
queue.filename="FwdRule01"
action.resumeRetryCount="-1"
queue.saveOnShutdown="on"
target="2001:4888:a03:3161:c0:9:0:100"
port="5544"
protocol="tcp"
stop
)
When I use the new syntax and restart rsyslog, it says it stopped, started and shows no other info. /var/log/messages shows the same. No errors.
I've rearranged, added and removed stuff with no luck getting it to work.
Any hints as to where I'm going wrong?
Thanks!
Since we're now on RHEL 7.9 and rsyslog 8.24 with a fairly stable new syntax, I'd like to convert the forwarder from the old syntax to the new. Here's an example of old syntax in use.
$WorkDirectory /var/lib/rsyslog # Where spool files will exist
$ActionQueueFileName FwdRule01 # Unique name prefix for spool files
$ActionQueueMaxDiskSpace 1g # 1GB space limit (use as much as possible)
$ActionQueueSaveOnShutdown on # Save messages to disk on shutdown
$ActionQueueType LinkedList # Use asynchronous processing
$ActionResumeRetryCount -1 # Infinite retries if host is down
*.* @@[2001:4888:a03:3161:c0:9:0:100]:5544
And what I'm trying to use as the new syntax. This is pretty much lifterd from RHEL documentation in the link. https://access.redhat.com/documentation ... log_queues
global(
parser.dropTrailingLFOnReception="on"
parser.escapeControlCharactersOnReceive="on"
workDirectory="/var/lib/rsyslog"
)
*.* action(
type="omfwd"
queue.type="linkedlist"
queue.filename="FwdRule01"
action.resumeRetryCount="-1"
queue.saveOnShutdown="on"
target="2001:4888:a03:3161:c0:9:0:100"
port="5544"
protocol="tcp"
stop
)
When I use the new syntax and restart rsyslog, it says it stopped, started and shows no other info. /var/log/messages shows the same. No errors.
I've rearranged, added and removed stuff with no luck getting it to work.
Any hints as to where I'm going wrong?
Thanks!