From cf29bcdc0d3a53d41523a42e416d4a143acc7b60 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sat, 22 Feb 2025 14:08:46 -0800 Subject: [PATCH] fixes to only running --- internal/ingest/victoria.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/ingest/victoria.go b/internal/ingest/victoria.go index cafe2fe4..05af9d2f 100644 --- a/internal/ingest/victoria.go +++ b/internal/ingest/victoria.go @@ -101,7 +101,9 @@ func (v *VictoriaIngestor) Start(ctx context.Context) error { } for _, c := range containers { - go v.streamLogs(ctx, c) + if c.State == "running" { + go v.streamLogs(ctx, c) + } } <-ctx.Done()