-
Notifications
You must be signed in to change notification settings - Fork 13
Description
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.