rsyslog issue loggng for different hosts
Hello,
I am trying to have some network devices (Cisco), router, switches, access points, log, via rsyslog, to different files on a 'central' hostbut all the messages keep ending up in /var/log/messages.
I created a file in /etc/rsyslog.d with the following content:
$template NetworkLogs,"/var/log/network/%HOSTNAME%-messages.log" *
.?NetworkLogs
& stop
Obviously I am missing something here.
any ideas?
thanks,
Ron