dozzle icon indicating copy to clipboard operation
dozzle copied to clipboard

🙋🏼 [Feedback needed] Support logs for multiple containers in a stack

Open amir20 opened this issue 9 months ago • 1 comments

Hi folks,

A few people have asked for this, so I am adding it to the backlog as I start thinking about it. With the release of v5.7.x, Dozzle groups containers by stack now.

A few people want to be able to also tail all containers in a stack so I think this would be a natural next step.

My current proposal is the following:

  1. Introduce a new button next to stack names that would tail all containers
  2. Instead of going to /containers/:id, introduce /stack/:name which could be something like /container/foobar where foobar is the stack name
  3. Look up all the container IDs in that stack and send to /api/logs?id=123&id=334&... to view all.
  4. Update the API to support a list of containers

Couple of things that are not in scope

  • It would not be possible to combine any containers in a log. It would have to be in a stack. Possibly in the future I can provide functionality for custom labels that could fix this. But the UI would be pretty complicated to support random logs being combined to one
  • Sometimes logs are clustered together when they are multiline. I am not sure how this will work in this scenario as all logs might be intertwined.

Feedback welcomed!

amir20 avatar May 15 '24 16:05 amir20