Skip to content

humanize numeric timestamps in logs #11

@ssbarnea

Description

@ssbarnea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions