From f9ab1f9421370379df9f462bcdceb265144ca329 Mon Sep 17 00:00:00 2001 From: Caleb Hurshman Date: Wed, 4 Dec 2024 10:01:49 -0500 Subject: [PATCH] default batch size --- receiver/splunksearchapireceiver/receiver.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/receiver/splunksearchapireceiver/receiver.go b/receiver/splunksearchapireceiver/receiver.go index 5f32bafc0..e685bf0e1 100644 --- a/receiver/splunksearchapireceiver/receiver.go +++ b/receiver/splunksearchapireceiver/receiver.go @@ -111,7 +111,7 @@ func (ssapir *splunksearchapireceiver) Shutdown(ctx context.Context) error { func (ssapir *splunksearchapireceiver) runQueries(ctx context.Context) error { for _, search := range ssapir.config.Searches { - // set default event batch size + // set default event batch size (matches Splunk API default) if search.EventBatchSize == 0 { search.EventBatchSize = 100 } @@ -213,6 +213,7 @@ func (ssapir *splunksearchapireceiver) runQueries(ctx context.Context) error { ssapir.logger.Debug("all search results exported", zap.String("query", search.Query), zap.Int("total results", exportedEvents)) } + ssapir.logger.Debug("all search results exported", zap.Int("total results", exportedEvents)) return nil }