5 ms·
On-disk logs should use ISO-8601 in UTC, ideally first thing on the line. That way you can merge them from different sources and sort them to help figure out i
by barrkel 5y ago
On-disk logs should use ISO-8601 in UTC, ideally first thing on the line.
That way you can merge them from different sources and sort them to help figure out interactions and causality. There might be clock drift from different sources but that's a much smaller problem than trying to eyeball multiple different logs concurrently, or write ad-hoc scripts to enable merging.
- Too 5y agoFor pure servers, what you say is easy and yes, almost exclusively, the preferred option. The tricky situations usually occur in CI, where you script together a lot of weird tools, most of them originally designed to be run by hands on developers workstation, where they want to see local timestamps and never had time to implement log config. Some days you can consider yourself lucky if the log files have any timestamps at all.