Skip to content

cli: support reverse order in debug merge-logs #32956

@tbg

Description

@tbg

Log files are in chronological order and that's how merge-logs displays them, but during debugging we're typically interested in the most recent events (as those are closer to when the problem occurred).

For large datasets, this can mean waiting for longer stretches until the end of the buffer renders.

An option (perhaps even set as default) to parse the logs in reverse chronological order seems useful, though it might be weird to mentally switch back and forth if merge-logs does not become our one and only way to look at the logs (I personally think it will be my one and only way).

Jira issue: CRDB-6350

Epic CRDB-20791

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-cli-adminCLI commands that pertain to controlling and configuring nodesA-loggingIn and around the logging infrastructure.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-supportability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions