Skip to content

docs: document a way to look at the logs #1568

@marcusboden

Description

@marcusboden

The logs are not easily accessible (see #779). You should provide some commands in the troubleshooting section to look at recent logs (since one does not always have a working log aggregation set up).

E.g.:

ls -rt /var/snap/charmed-postgresql/common/var/log/patroni | tail -100 | xargs -I{} cat /var/snap/charmed-postgresql/common/var/log/patroni/{}

Reported from: https://canonical-charmed-postgresql.readthedocs-hosted.com/14/reference/troubleshooting/cli-helpers/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions