Skip to content

"errors" output is unsorted #30

Description

@raphideb

When I run the errors command, the output is not sorted by time, which makes it hard to figure out what's really going on:

pgweasel errors postgresql-Wed.log |cut -d' ' -f1-2
2026-04-29 04:24:31.476
2026-04-29 00:32:12.863
2026-04-29 03:55:24.187
2026-04-29 05:30:44.998
2026-04-29 02:27:21.288
2026-04-29 03:55:24.187
....

It can be sorted with sort but it'd be helpful if pgweasel would print the lines in order:
pgweasel errors postgresql-Wed.log |sort -k2 |cut -d' ' -f1-2
2026-04-29 03:37:52.080
2026-04-29 03:37:52.080
2026-04-29 03:37:52.088
2026-04-29 03:37:52.095
2026-04-29 03:37:52.109
2026-04-29 03:37:52.205

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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