[syslog-ng] Time zone problem in Mongodb driver

Kyaw Kyi KKyi at nyx.com
Wed Jul 24 22:10:34 CEST 2013


Hi,

I tried to use time_zone() option in mongodb destination driver but it is throwing an error.

Error parsing afmongodb, syntax error, unexpected KW_TIME_ZONE, expecting ')' in /usr/local/etc/syslog-ng.conf at line 60, column 2:

        time_zone("America/New_York")

It doesn't seem to a syntax error. It seems more like syslog-ng doesn't understand the time_zone() option in mongodb driver.

This is my configuration:

@version: 3.4
@include "scl.conf"
options {
ts_format(iso) ;
keep_hostname(yes);
keep_timestamp(yes);
time_reopen(10);
};

destination d_mongodb1 {
mongodb(
        time_zone("America/New_York")
);
};

I tried using ("-04:00") instead but no avail.
Mongodb destination driver is working well without the time_zone() option.

Thanks,
Joe



------------------------------------------------------------------------------

Please consider the environment before printing this email.

Visit our website at http://www.nyse.com <http://www.nyse.com>
*****************************************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130724/28f9974d/attachment.htm 


More information about the syslog-ng mailing list