by purplep » Thu Oct 22, 2009 8:32 pm
Forgot to mention rsyslogd is called with the -c4 and -i flags in addition to the -f to specify the config file.
My config file contains:
$ModLoad imudp
$ModLoad imtcp
$ModLoad imklog
$ModLoad ommail
$UDPServerAddress 10.41.7.95
$UDPServerRun 514
$UDPServerAddress 10.41.7.95
$InputTCPServerRun 514
$RepeatedMsgReduction on
$PreserveFQDN on
$template HostFile,"/jupiter1/logs/%fromhost%/%$MONTH%-%$YEAR%.log"
$template RFC3164fmt,"<%PRI%>%TIMESTAMP% %HOSTNAME% %syslogtag%%msg%\n"
$template precise,"%syslogpriority% %syslogfacility% %timegenerated% %HOSTNAME% %syslogtag% %msg%\n"
$template singlehost,"%timereported% %pri-text% %fromhost% %programname% %msg%\n"
*.* -?HostFile;singlehost
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
kern.* /dev/console,HostFile;singlehost
# Log anything (except mail) of level info or higher.
mail.none;authpriv.none;cron.none HostFile;singlehost
# The authpriv file has restricted access.
authpriv.* /var/log/secure
# Log all the mail messages in one place.
mail.* /var/log/maillog
# Log cron stuff
cron.* /var/log/cron
# Everybody gets emergency messages
*.emerg *
# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler
*.info HostFile;singlehost
local0.* HostFile;singlehost
local1.* HostFile;singlehost
local2.* HostFile;singlehost
local3.* HostFile;singlehost
local4.* HostFile;singlehost
local5.* HostFile;singlehost
local6.* HostFile;singlehost
local7.* HostFile;singlehost