[syslog-ng] what's the default template of file destination?
Fu Ecy
fuzhijie1985 at gmail.com
Fri Apr 13 09:04:03 CEST 2012
Dear guys:
I use syslog-ng to gather the error log of my system, but now I have a
problem. The original log message is like this.
*[2012-04-10 **18:51:30**] [BlenderProcessor.cpp:452:allocPhase1Request()]
[WARN] :: BLENDER: queryparser doRewrite function error*
I set the template like this.
*file( "/home/admin/logs/blender.log.$S_YEAR-$S_MONTH-$S_DAY"
create_dirs(yes) owner(admin) group(admin) perm(0755)
template("$YEAR-$MONTH-$DAY $HOUR:$MIN:$SEC\t$FULLHOST\t$MESSAGE\n") );*
Then I get the log like this.
*2012-04-13 14:41:36 s061090.cm5 18:51:30]
[BlenderProcessor.cpp:452:allocPhase1Request()]
[WARN] :: BLENDER: queryparser doRewrite function error*
The date of original log message has been truncated. If I don't use
template, it will be ok. So I wonder what is the default template.
Thank you very much :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20120413/872d9a9d/attachment.htm
More information about the syslog-ng
mailing list