I've been looking at examples of rsyslogs but most seems too programmer centric for me.
I need 10.10.10.12, 10.10.10.13, 10.10.10.14 to get 1 shared log file.
This gives me the log I want into my main /var/log/syslog
$ModLoad imuxsock # provides support for local system logging $ModLoad imklog # provides kernel logging support (previously done by rklogd) #$ModLoad immark # provides --MARK-- message capability # provides UDP syslog reception $ModLoad imudp $UDPServerRun 514
I tried adding this, but It didn't work.
if $fromhost-ip == '10.10.10.12' then /var/log/aps.log & ~ if $fromhost-ip == '10.10.10.13' then /var/log/aps.log & ~ if $fromhost-ip == '10.10.10.14' then /var/log/aps.log & ~
I updated my code with
== as it makes more scene, but it did not fix the problem.