[syslog-ng] Getting milliseconds in logs

Abhijeet Rastogi abhijeet.1989 at gmail.com
Thu Apr 4 23:59:42 CEST 2013


That was quick. That did it.  I feel foolish now. Thanks a lot Evan


On Fri, Apr 5, 2013 at 3:26 AM, Evan Rempel <erempel at uvic.ca> wrote:

> You should be able to use the frac_digits(3); global option (or on a
> destination).
>
> Evan.
>
> On 04/04/2013 02:46 PM, Abhijeet Rastogi wrote:
> > I've even even tried using custom template like:
> >
> > template t_both_timestamps {
> >       template("$R_ISODATE $HOST $S_ISODATE $MSG\n");
> template_escape(no);
> > };
> >
> > It still gave me a timestamp like 2013-04-05T03:14:27+00:00.
> >
> >
> > What is it that I'm doing wrong?
> >
> >
> > On Fri, Apr 5, 2013 at 3:02 AM, Abhijeet Rastogi <
> abhijeet.1989 at gmail.com <mailto:abhijeet.1989 at gmail.com>> wrote:
> >
> >     Hi,
> >
> >     I want to get a complete ISO8601 timestamp format in syslog-ng.
> Something like: 2013-04-04T18:44:34.694692+00:00
> >
> >     When I enable, ts_format("iso"), I'm not able to get milliseconds
> precision and what I get is something like 2013-04-05T02:57:07+00:00
> >
> >     For some reason, I really need milliseconds resolution. How can I
> achieve that in syslogn-ng?
> >
> >     --
> >     Regards,
> >     Abhijeet Rastogi (shadyabhi)
> >     http://blog.abhijeetr.com
> >
> >
> >
> >
> > --
> > Regards,
> > Abhijeet Rastogi (shadyabhi)
> > http://blog.abhijeetr.com
> >
> >
> >
> ______________________________________________________________________________
> > 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
> >
>
>
> --
> Evan Rempel                                      erempel at uvic.ca
> Senior Systems Administrator                        250.721.7691
> Data Centre Services, University Systems, University of Victoria
>
> ______________________________________________________________________________
> 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
>
>


-- 
Regards,
Abhijeet Rastogi (shadyabhi)
http://blog.abhijeetr.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130405/3bcbbb74/attachment.htm 


More information about the syslog-ng mailing list