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 }