I've got a very simple setup with logs being collected from three servers: 10.0.4.1, 10.0.4.2, and 10.0.4.3
Config files, in /etc/rsyslog.d/syslogconfig.conf, follow this pattern [with changed IP addresses]:
# Remote devices config for syslog
#10.0.4.1
:HOSTNAME, isequal, "10.0.4.1" /var/log/syslog-a.log
& stop
I want to consolidate logs from all three servers into a single file, but no matter what I try* I can't get it to work.
*[ I've tried duplicating :HOSTNAME line as above for each log generating server, followed by '& stop' and also
:msg, regex, ".*10.0.4.[1-3[{1}.*"
]