Time zone problem in Mongodb driver
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.
Kyaw Kyi <KKyi@nyx.com> writes:
Hi,
I tried to use time_zone() option in mongodb destination driver but it is throwing an error.
That's because the driver does not support the option at all, and as such, from the syslog-ng point of view, it is a syntax error. If you could file an issue in BugZilla[1], that would be great, as I won't forget about it by the next time I work on the MongoDB destination. Thanks! -- |8]
On 07/25/2013 08:58 AM, Gergely Nagy wrote:
Kyaw Kyi <KKyi@nyx.com> writes:
Hi,
I tried to use time_zone() option in mongodb destination driver but it is throwing an error.
That's because the driver does not support the option at all, and as such, from the syslog-ng point of view, it is a syntax error. If you could file an issue in BugZilla[1], that would be great, as I won't forget about it by the next time I work on the MongoDB destination.
Thanks!
Until it gets fixed, I've removed this option from the documentation of the mongodb destination. Robert
It's probably not too difficult to fix either. An additional option in the grammar, and propagating the specified value to template formatting. On Jul 25, 2013 10:19 AM, "Fekete Robert" <frobert@balabit.hu> wrote:
On 07/25/2013 08:58 AM, Gergely Nagy wrote:
Kyaw Kyi <KKyi@nyx.com> writes:
Hi,
I tried to use time_zone() option in mongodb destination driver but it is throwing an error.
That's because the driver does not support the option at all, and as such, from the syslog-ng point of view, it is a syntax error. If you could file an issue in BugZilla[1], that would be great, as I won't forget about it by the next time I work on the MongoDB destination.
Thanks!
Until it gets fixed, I've removed this option from the documentation of the mongodb destination.
Robert
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq
Thanks for the quick responses, guys. I need to use that option for mongodb in my project so I am not pushing but when can I expect to be able to use that option in syslog-ng? Thanks, Kyaw From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu] On Behalf Of Balazs Scheidler Sent: Thursday, July 25, 2013 10:55 AM To: Syslog-ng users' and developers' mailing list Subject: Re: [syslog-ng] Time zone problem in Mongodb driver It's probably not too difficult to fix either. An additional option in the grammar, and propagating the specified value to template formatting. On Jul 25, 2013 10:19 AM, "Fekete Robert" <frobert@balabit.hu<mailto:frobert@balabit.hu>> wrote: On 07/25/2013 08:58 AM, Gergely Nagy wrote:
Kyaw Kyi <KKyi@nyx.com<mailto:KKyi@nyx.com>> writes:
Hi,
I tried to use time_zone() option in mongodb destination driver but it is throwing an error.
That's because the driver does not support the option at all, and as such, from the syslog-ng point of view, it is a syntax error. If you could file an issue in BugZilla[1], that would be great, as I won't forget about it by the next time I work on the MongoDB destination.
Thanks!
Until it gets fixed, I've removed this option from the documentation of the mongodb destination. Robert ______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.balabit.com/wiki/syslog-ng-faq ------------------------------------------------------------------------------ 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.
Kyaw Kyi <KKyi@nyx.com> writes:
Thanks for the quick responses, guys. I need to use that option for mongodb in my project so I am not pushing but when can I expect to be able to use that option in syslog-ng?
I can't give a timeframe, I'm afraid. I'll try to look at it soon, but not sure how much time I can spend on it. What I do know, is that it's going to be introduced in the 3.5 branch, I don't want to backport it to neither 3.3, nor 3.4. (Although backporting to 3.4 should be easy, I don't plan making it part of an official release) -- |8]
participants (4)
-
Balazs Scheidler
-
Fekete Robert
-
Gergely Nagy
-
Kyaw Kyi