[syslog-ng] Getting milliseconds in logs

Abhijeet Rastogi abhijeet.1989 at gmail.com
Thu Apr 4 23:46:54 CEST 2013


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>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20130405/62d81dd9/attachment.htm 


More information about the syslog-ng mailing list