Page MenuHomePhabricator

rsyslog: use high precision timestamps or explain why not
Closed, DeclinedPublic

Description

We have:
May 7 06:37:01 neon CRON[314]: (root) CMD (/usr/local/sbin/puppet-run > /dev/null 2>&1)

We could have:
2015-05-07T07:01:01.046748+00:00 curium CRON[9189]: (root) CMD (/usr/local/sbin/puppet-run > /dev/null 2>&1)

From /etc/rsyslog.conf:

# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

Why don't we do this? Highrez timestamps are helpful for debugging, and more parseable.

Event Timeline

Gage raised the priority of this task from to Medium.
Gage updated the task description. (Show Details)
Gage added a project: acl*sre-team.
Gage subscribed.
lmata subscribed.

While we generally agree with the sentiment, we haven't found an instance where this has been a blocker and needed. This feels more like a nice to have, and the goal is to parse the timestamp out of the log message anyways. The Syslog timestamp is more of a fallback than the timestamp provided by the system generating the event. the team doesn't feel like this is something critical. closing and we can re-open if this becomes an issue.