[rsyslog-notify] Forum Thread: Re: Log to file into different san volumes - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Tue Apr 8 20:47:04 CEST 2014
User: dlang
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24510#p24510
Message:
----------
two approaches
1. you can have some if statements that divide the logs and log using
different actions
2. you can use dynamic filenames similar to what you did
replace 'server1' in 'logserver1' with %hostname% (or whatever resolves to
the string that you want) and it should work
note that you can combine these two approaches. Assuming you are running
7.x or 8.x you can have if statements that set a variable that you then use
in a dynamic filename template
David Lang
More information about the rsyslog-notify
mailing list