Skip to content

Commit

Permalink
Downgrade ES bulk item log message (elastic#3959)
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`).

(cherry picked from commit 58bd0e1)
  • Loading branch information
Steffen Siering authored and tsg committed Apr 10, 2017
1 parent b7bde10 commit 6db64ab
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 @@ -118,6 +118,7 @@ https://github.com/elastic/beats/compare/v5.2.2...v5.3.0[View commits]
- Add `_id`, `_type`, `_index` and `_score` fields in the generated index pattern. {pull}3282[3282]
- Fix potential elasticsearch output URL parsing error if protocol scheme is missing. {pull}3671[3671]
- Improve error message when downloading the dashboards fails. {pull}3805[3805]
- Downgrade Elasticsearch per batch item failure log to debug level. {issue}3953[3953]
*Filebeat*
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 @@ -443,7 +443,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 6db64ab

Please sign in to comment.