From 0a5e470284f5f64038f4be60564fb6d29260a280 Mon Sep 17 00:00:00 2001 From: Balazs Scheidler Date: Mon, 2 Dec 2024 17:00:00 +0100 Subject: [PATCH] http: fix batch-lines() in case only batch-bytes() is set Signed-off-by: Balazs Scheidler --- modules/http/http.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/http/http.c b/modules/http/http.c index 174efbf37..b8eabf92e 100644 --- a/modules/http/http.c +++ b/modules/http/http.c @@ -457,6 +457,8 @@ http_dd_init(LogPipe *s) return FALSE; } } + if (self->batch_bytes > 0 && self->super.batch_lines == 0) + self->super.batch_lines = G_MAXINT; log_template_options_init(&self->template_options, cfg);