cornet / ccze

ccze
GNU General Public License v2.0
403 stars 31 forks source link

humanize numeric timestamps in logs #11

Open ssbarnea opened 5 years ago

ssbarnea commented 5 years ago

Some log files are using by default numeric timestamps which are of zero value to humans.

it would be great if ccze would transform them to readable form.

Example from squid logs:

1547290778.963      0 192.168.33.40 TCP_MEM_HIT/200 454 GET http://167.99.100.132/ - HIER_NONE/- text/html
1547290779.063     95 192.168.33.40 TCP_REFRESH_MODIFIED/200 422 GET http://131.186.113.70/ - HIER_DIRECT/131.186.113.70 text/html

Before asking to change the default logging format keep in mind its downsides:

Because ccze is a user-facing tool, that woudl be the best place to make the logs easier to read.