I just installed syslog 3.0 and added fra_digits(3) in my options, and restarted syslog-ng. I still don't see the milliseconds in the logs. I don't want to use ISO format. Can anyone suggest a solution? Thanks, Jo __________________________________________________________________ Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now http://ca.toolbar.yahoo.com.
I need this format of date in my syslog (notice the 3 digit miliseconds): Mar 31 22:17:04.056 HOSTNAME PORTAGENT[10354]: INFO,broadcast srp down, NOT: 2009-03-31T22:17:42.000+00:00 HOSTNAME PORTAGENT[10354]: INFO,broadcast srp down --- On Tue, 3/31/09, Joe Hansen <yrmf250@yahoo.com> wrote: From: Joe Hansen <yrmf250@yahoo.com> Subject: [syslog-ng] syslog 3.0 and fra_digits() To: syslog-ng@lists.balabit.hu Date: Tuesday, March 31, 2009, 9:17 PM I just installed syslog 3.0 and added fra_digits(3) in my options, and restarted syslog-ng. I still don't see the milliseconds in the logs. I don't want to use ISO format. Can anyone suggest a solution? Thanks, Jo Yahoo! Canada Toolbar : Search from anywhere on the web and bookmark your favourite sites. Download it now! ______________________________________________________________________________ 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 __________________________________________________________________ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
Well, currently only the ISO timestamp format supports subsecond resolution. This patch makes it possible to do the same with other timestamp formats: commit 70d758fe40ad64f78e28e87b629c54fbd1fdc09e Author: Balazs Scheidler <bazsi@balabit.hu> Date: Wed Apr 1 10:00:35 2009 +0200 [LogStamp] make it possible to use frac_digits with non-ISO timestamps You can get it via nightly snapshot, or by cloning the git repository. On Tue, 2009-03-31 at 15:20 -0700, Joe Hansen wrote:
I need this format of date in my syslog (notice the 3 digit miliseconds):
Mar 31 22:17:04.056 HOSTNAME PORTAGENT[10354]: INFO,broadcast srp down,
NOT:
2009-03-31T22:17:42.000+00:00 HOSTNAME PORTAGENT[10354]: INFO,broadcast srp down
-- Bazsi
participants (2)
-
Balazs Scheidler
-
Joe Hansen