From f2fcb032110bc4b590c96b70518a4e1e1e03b279 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Fri, 28 Mar 2008 10:02:22 +0000 Subject: - changed default file output format to include high-precision timestamps - added a buid-in template for previous syslogd file format - added new $ActionFileDefaultTemplate directive --- ChangeLog | 3 +++ conf.c | 6 ++++-- doc/rsyslog_conf.html | 2 +- doc/v3compatibility.html | 49 +++++++++++++++++++++++++++++++++++------------- omfile.c | 18 +++++++++++++++--- omshell.c | 3 ++- syslogd.c | 9 ++++++--- syslogd.h | 2 +- 8 files changed, 68 insertions(+), 24 deletions(-) diff --git a/ChangeLog b/ChangeLog index eda40ada..364f8fbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,9 @@ Version 3.12.5 (rgerhards), 2008-03-?? logged so that a user can diagnose problems with them - added compatibility mode for -a, -o and -p options - MILESTONE: compatibility mode processing finished +- changed default file output format to include high-precision timestamps +- added a buid-in template for previous syslogd file format +- added new $ActionFileDefaultTemplate directive --------------------------------------------------------------------------- Version 3.12.4 (rgerhards), 2008-03-25 - Greatly enhanced rsyslogd's file write performance by disabling diff --git a/conf.c b/conf.c index f88216ef..f3f10ba3 100644 --- a/conf.c +++ b/conf.c @@ -530,8 +530,10 @@ finalize_it: * to hold the largest possible filename. * rgerhards, 2007-07-25 * updated to include OMSR pointer -- rgerhards, 2007-07-27 + * updated to include template name -- rgerhards, 2008-03-28 */ -rsRetVal cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pOMSR, int iEntry, int iTplOpts) +rsRetVal +cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pOMSR, int iEntry, int iTplOpts, uchar *pszTpl) { register uchar *pName; int i; @@ -547,7 +549,7 @@ rsRetVal cflineParseFileName(uchar* p, uchar *pFileName, omodStringRequest_t *pO } *pName = '\0'; - iRet = cflineParseTemplateName(&p, pOMSR, iEntry, iTplOpts, (uchar*) " TradFmt"); + iRet = cflineParseTemplateName(&p, pOMSR, iEntry, iTplOpts, pszTpl); RETiRet; } diff --git a/doc/rsyslog_conf.html b/doc/rsyslog_conf.html index 14dad6f6..916056a7 100644 --- a/doc/rsyslog_conf.html +++ b/doc/rsyslog_conf.html @@ -64,7 +64,7 @@ unstable...). So you have been warned ;)

many parameter settings modify queue parameters. If in doubt, use the default, it is usually well-chosen and applicable in most cases.