M
M
Maxim2020-08-20 09:30:58
linux
Maxim, 2020-08-20 09:30:58

What does this comment in rsyslog.conf mean?

Hello.

At the very bottom of the /etc/rsyslog.conf file there are lines like this . At least in CentOS 7 they are.

# ### begin forwarding rule ###
# The statement between the begin ... end define a SINGLE forwarding
# rule. They belong together, do NOT split them. If you create multiple
# forwarding rules, duplicate the whole block!
# Remote Logging (we use TCP for reliable delivery)
#
# An on-disk queue is created for this action. If the remote host is
# down, messages are spooled to disk and sent when it is up again.
#$ActionQueueFileName fwdRule1 # 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   # run asynchronously
#$ActionResumeRetryCount -1    # infinite retries if host is down
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @@remote-host:514
# ### end of the forwarding rule ###


I don't understand what is meant by
The statement between the begin ... end define a SINGLE forwarding rule. They belong together, do NOT split them. If you create multiple forwarding rules, duplicate the whole block!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan Fedoseev, 2020-08-20
@martin74ua

translator broken? ok
, the lines between begin and end define one forward rule. Don't split lines, don't spread. If you need more rules - copy the entire block.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question