Skip to content

lagoon logs command #232

@smlx

Description

@smlx

Is your feature request related to a problem? Please describe.
Sometimes it might be easier to request logs from a Lagoon environment via the command line. This is simpler in cases where you know exactly which project/env you want to see logs for.

Describe the solution you'd like
It would be great if I could run a command like this and have logs printed to my terminal:

lagoon logs --project=... --environment=... --log-type=[application,router,container]

Describe alternatives you've considered
The logging web UI is fine, but sometimes a CLI is better and probably faster.

Additional context
This feature request would have to know about the logging solution of your specific installation of Lagoon, and probably be tied to Opensearch. I'm not sure if it would be better for the CLI to go through a Lagoon API endpoint for logs, or if it makes more sense to query Opensearch directly.

I'm also not sure if this idea even makes sense; this issue is just a discussion starter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionHave a discussion about something

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions