Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

humanize numeric timestamps in logs #11

Open
ssbarnea opened this issue Jan 12, 2019 · 0 comments
Open

humanize numeric timestamps in logs #11

ssbarnea opened this issue Jan 12, 2019 · 0 comments

Comments

@ssbarnea
Copy link

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:

  • change needs deployment to all servers
  • this is likely to break other tools that do read the logs which would need to be fixed (syslog servers, logstash,....)

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant