Skip to content

Commit

Permalink
default batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb-Hurshman committed Dec 4, 2024
1 parent b2f0bbf commit f9ab1f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion receiver/splunksearchapireceiver/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit f9ab1f9

Please sign in to comment.