Skip to content

Commit c65eb4e

Browse files
author
zhudejun1
committed
[doc] Add bulk flush configuration options for Kafka output
1 parent 2ff3b66 commit c65eb4e

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

docs/reference/filebeat/filebeat-reference-yml.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2052,6 +2052,14 @@ output.elasticsearch:
20522052
# is 0.
20532053
#bulk_flush_frequency: 0s
20542054

2055+
# The best-effort number of bytes needed to trigger a flush. If the batch reaches
2056+
# this size, it will be sent immediately. 0 means disabled. The default is 0.
2057+
#bulk_flush_bytes: 0
2058+
2059+
# The best-effort number of messages needed to trigger a flush. If the batch reaches
2060+
# this count, it will be sent immediately. 0 means disabled. The default is 0.
2061+
#bulk_flush_messages: 0
2062+
20552063
# The number of seconds to wait for responses from the Kafka brokers before
20562064
# timing out. The default is 30s.
20572065
#timeout: 30s

docs/reference/filebeat/kafka-output.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,13 @@ The maximum number of events to bulk in a single Kafka request. The default is 2
276276

277277
Duration to wait before sending bulk Kafka request. 0 is no delay. The default is 0.
278278

279+
### `bulk_flush_bytes` [_bulk_flush_bytes]
280+
281+
The best-effort number of bytes needed to trigger a flush. If the batch reaches this size, it will be sent immediately. 0 means disabled. The default is 0.
282+
283+
### `bulk_flush_messages` [bulk_flush_messages]
284+
285+
The best-effort number of messages needed to trigger a flush. If the batch reaches this count, it will be sent immediately. 0 means disabled. The default is 0.
279286

280287
### `timeout` [_timeout_4]
281288

0 commit comments

Comments
 (0)