...
1module( load="builtin:omfile" template="LELogFormat" )
2
3template( name="LELogFormat" type="list" ) {
4 property(name="timereported" dateFormat="rfc3339")
5 constant(value=" ")
6 property(name="hostname" field.delimiter="46" field.number="1")
7 constant(value=" datacenter ")
8 property(name="syslogseverity")
9 constant(value=" ")
10 property(name="syslogtag")
11 property(name="msg" spifno1stsp="on" )
12 property(name="msg" droplastlf="on" )
13 constant(value="\n")
14}
15
16template( name="TmplAll" type="string" string="/var/log/%PROGRAMNAME%.log" )
17
18action( type="omfile" dynaFile="TmplAll" )
View as plain text