Skip to content

Commit

Permalink
Downgrade ES bulk item log message (#3954)
Browse files Browse the repository at this point in the history
Downgrade logging of per bulk item failures from INFO to DEBUG. In worst case,
every item in a bulk might fail, poluting the logs with loads of similar
messages (one log messages per `bulk_max_size`).
  • Loading branch information
Steffen Siering authored and tsg committed Apr 7, 2017
1 parent 3f1c7c0 commit eedd8b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ https://github.com/elastic/beats/compare/v5.1.1...master[Check the HEAD diff]
filebeat.config_dir. {pull}3573[3573]
- Fix empty registry file on machine crash. {issue}3537[3537]
- Allow `-` in Apache access log byte count. {pull}3863[3863]
- Downgrade Elasticsearch per batch item failure log to debug level. {issue}3953[3953]

*Heartbeat*

Expand Down
2 changes: 1 addition & 1 deletion libbeat/outputs/elasticsearch/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func bulkCollectPublishFails(
continue
}

logp.Info("Bulk item insert failed (i=%v, status=%v): %s", i, status, msg)
debugf("Bulk item insert failed (i=%v, status=%v): %s", i, status, msg)
failed = append(failed, data[i])
}

Expand Down

0 comments on commit eedd8b0

Please sign in to comment.