[rsyslog-notify] Forum Thread: Re: Basic configuration problem - (Mode 'reply')

noreply at adiscon.com noreply at adiscon.com
Thu Oct 9 02:10:34 CEST 2014


User: dlang 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24986#p24986

Message: 
----------
a couple of notes.

there's no need to use the - before the filename, rsyslog doesn't do fsyncs
after each write by default and it buffers the logs in memory.

with v7+ you don't need to do

*.* action

you can just do 

action

so you can do
[code:2komh5wt]
if $programname == 'myprog' then {
        *.warning /var/log/myprog-warn.log
        /var/log/myprog.log
        stop
}[/code:2komh5wt]


More information about the rsyslog-notify mailing list