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?
On Wed, 2009-02-11 at 09:43 +0800, Charles Chan wrote:sorry, the keyword is called 'time_zone'. notice the underscore.
> 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)); };
--
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