[rsyslog-notify] Forum Thread: File per host not working with "service" command - (Mode 'post')

noreply at adiscon.com noreply at adiscon.com
Sun Apr 27 18:51:32 CEST 2014


User: copo 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24586#p24586

Message: 
----------
Hi,

I got a very simple setup which will create a separate file per host using
the following template, however it does not work when I do restart the
service using the command "service rsyslog restart", but; when I stop the
service and start it again by executing the binary directly "sbin/rsyslogd"
then it works. So now when the server restart for some reason such as power
outage the rsyslog will not work as expected. I have only changed the
config at /etc/rsyslog.conf and nothing else, any hint why this is not
working? Thank you very much!

$template
FileNamePerHost,"/syslog/%HOSTNAME%/%HOSTNAME%-%$YEAR%%$MONTH%%$DAY%.log"
local4.* -?FileNamePerHost


//Copo


More information about the rsyslog-notify mailing list