time granularity in rsyslog

General discussions here

Moderator: rgerhards

time granularity in rsyslog

Postby dhaivat.desai » Tue Apr 07, 2009 11:21 am

Hi,
I am using Property Options 'date-subseconds' for property 'timestamp'.
i.e. i use as follow:

$template sysmsg,"%HOSTNAME% %timestamp:::date-rfc3164%.%timestamp:::date-subseconds% %programname% %msg%\n"

I use this tamplate to log my message. And my message is as follow...

[LOG-INFO.] 06.04.2009 15:58:25.426273 multicast group '239.192.1.14' inserted

What is meaning of 426273...? Is it fraction of second in microsecond level granularity...?

Thanks.... :-)
dhaivat.desai
Advanced
 
Posts: 42
Joined: Mon Nov 24, 2008 11:49 am

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Re: time granularity in rsyslog

Postby rgerhards » Tue Apr 07, 2009 11:24 am

It depends on how long it is. And that is somewhat depending on the sender. If it is 6 digits, you have microsecond granularity, if it is 3 ditgits, you have millisecond granularity. In practice, you should (I think) always see 6 digits.
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to General

Who is online

Users browsing this forum: No registered users and 0 guests

cron