ptmcg / logmerger

TUI utility to view multiple log files with merged timeline
MIT License
145 stars 3 forks source link

support more timestamp formats #36

Open sebhaase opened 7 months ago

sebhaase commented 7 months ago

I have 2023/12/03 02:30:18 in my nginx log and [Fri Dec 01 00:00:25.933177 2023] in my apache log. Could those be support ed by default? Or can I add support via the --timestamp_format option? Otherwise, it looks like a very useful nice tool.

ptmcg commented 7 months ago

These both look pretty common (both the formats and popularity of those log files), I'll add them to the set of known formats in logmerger.

Could you send a single sample log line with each format that I can use for testing? (Be sure it doesn't include any personal or secret information.)

ptmcg commented 7 months ago

Never mind, what you have already sent should be sufficient.

ptmcg commented 7 months ago

The nginx log timestamp looks pretty standard. Is the Apache log format also a standard/default format, or something your site has customized?

sebhaase commented 7 months ago

As far as I know, we use a very common custom format — at least it is directly copied from the official docs.