We want to forward messages using an intermediate rsync forwarder/broker. We do not want the broker to save any messages from the clients and we also want to forward the broker messages to the Rsyslog Sink.
- reliable forwarding
- queues, memory, DA
- multiple remotes
- statistics
- monitoring
- TLS encryption
- TLS encryption
...
# forwarding tcp
*.* @@<hostname/ip>:<port>
# forwarding udp
*.* @<hostname/ip>:<port>
# End of rsyslog.conf
# /etc/rsyslog.d/forwardTCP.conf
$ModLoad imtcp
# Forward all incoming tcp logging to remote
# It is important to stop the RuleSet to prevent local logging
$RuleSet remoteTCP
*.* @@10.16.205.18:8443
& stop
# Bind the ruleset and activate
$InputTCPServerBindRuleset remoteTCP
$InputTCPServerRun 5140
# /etc/rsyslog.d/forwardLocal.conf
# No stopping needed, because we want normal message logging to happen
*.info;mail.none;authpriv.none;cron.none @@10.16.205.18:8443
Put files in subdirectories for each host based on a pattern
# /etc/rsyslog.d/endpoint.conf
$ModLoad imtcp
$RuleSet remote
*.* /var/log/super.log
& stop
$InputTCPServerBindRuleset remote
$InputTCPServerRun 8443