[rsyslog-notify] Forum Thread: Re: Config file with RainerScript & RELP - (Mode 'reply')

noreply at adiscon.com noreply at adiscon.com
Wed Feb 3 17:53:42 CET 2016


User: rich350 
Forumlink: http://kb.monitorware.com/viewtopic.php?p=26321#p26321

Message: 
----------
I am also trying to get our server-side filtering and dynamic file naming
working with rainerscript.  This template syntax did the trick for me (note
that I'm using udp):

[code:1d28dzcn]
template(name="DailyPerHostLogs" type="string"
   
string="/data/log/hosts/%$year%%$month%%$day%/%HOSTNAME%/%syslogfacility-text%.log"
)

ruleset(name="test"){
    action(type="omfile"
           dynaFile="DailyPerHostLogs"
           template="RSYSLOG_TraditionalFileFormat")
}

input(type="imudp" port="514" ruleset="test")
[/code:1d28dzcn]

Hope this helps!


More information about the rsyslog-notify mailing list