[syslog-ng] Timezone problem?!
Charles Chan
digiblue at gmail.com
Thu Feb 12 02:52:14 CET 2009
I use time_zone instead timezone,configuration like this
===========================================================
template apache_template { template("$DAY-$HOUR $S_DAY-$S_HOUR
$R_DAY-$R_HOUR $MSGONLY\n"); template_escape(no); };
destination us_int_apache {
file("/disk2/apache_logs/$YEAR-$MONTH-$DAY/$HOST.apache.log"
timezone("PST8PDT") template(apache_template)); };
============================================================
service can start,but the problem still exists.
the file is stored in the /disk2/apache_logs/2009-02-12
generated log is:
11-17 11-17 11-17 222.69.201.23 - - - [11/Feb/2009:17:37:03 -0800] "GET
/atmgateway.client.html ...................
two date string still difference. I use syslog-ng 3.0.1 OSE version,is this
OSE version problem?
2009/2/11 Balazs Scheidler <bazsi at balabit.hu>
> On Wed, 2009-02-11 at 09:43 +0800, Charles Chan wrote:
> > I use follow configuration still not work,display "syntax error".
> > destination us_int_apache
> > { file("/disk2/apache_logs/$YEAR-$MONTH-$DAY/$HOST.apache.log"
> > timezone("PST8PDT") template(apache_template)); };
>
> sorry, the keyword is called 'time_zone'. notice the underscore.
>
> --
> Bazsi
>
>
> ______________________________________________________________________________
> Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng
> Documentation:
> http://www.balabit.com/support/documentation/?product=syslog-ng
> FAQ: http://www.campin.net/syslog-ng/faq.html
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090212/e27f743f/attachment.htm
More information about the syslog-ng
mailing list