I've enabled remote logging in my rsyslog.conf with:
# provides UDP syslog reception module(load="imudp") input(type="imudp" port="514")
and then in /etc/rsyslog.d/devices.conf, I have
$template RemoteLogs,"/var/log/devices/%HOSTNAME%.log" *.* ?RemoteLogs
I'm finding though that the local machine (the rsyslog server) is logging its events not just to the relevant /var/log/filename but also /etc/log/devices/pi.log
How do i prevent the logs in /etc/log/devices/ for the local host (called pi) please?