On Ubuntu Natty, the configuration order is important. Hence in folder /etc/rsyslogd.conf, file 20-ufw.conf takes precedence over 50-default.conf. Hence if one would like to have its configuration take precedence, the filename must be like 30-voip-router.conf.
Following content would suffice:
root@delbuntu:/etc/rsyslog.d# cat 30-voip-router.conf
$ModLoad imudp
$UDPServerRun 514
#$ModLoad imtcp
#$InputTCPServerRun 514
$template DynFile,"/var/log/router-log/%HOSTNAME%/%timegenerated:1:10:date-rfc3339%"
:HOSTNAME, !isequal, "localhost" ?DynFile
& ~
Tuesday, May 10, 2011
Setting up rsyslogd to get logs from Cisco SPA3102.
Posted by linuxtechie at 10:49 PM
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment