diff --git a/pkg/pattern/aggregation/push.go b/pkg/pattern/aggregation/push.go index f2b71761f399f..4962b9e97bb0f 100644 --- a/pkg/pattern/aggregation/push.go +++ b/pkg/pattern/aggregation/push.go @@ -222,6 +222,10 @@ func (p *Push) buildPayload(ctx context.Context) ([]byte, error) { } } + if len(streams) == 0 { + return nil, nil + } + req := &logproto.PushRequest{ Streams: streams, }