diff --git a/filebeat-docker.yml b/filebeat-docker.yml index e7c4253..d9202ec 100644 --- a/filebeat-docker.yml +++ b/filebeat-docker.yml @@ -48,6 +48,27 @@ setup: dashboards: enabled: false +# Internal queue configuration for buffering events to be published. +queue: + # Queue type by name (default 'mem') + # The memory queue will present all available events (up to the outputs + # bulk_max_size) to the output, the moment the output is ready to server + # another batch of events. + mem: + # Max number of events the queue can buffer. + events: 4096 + + # Hints the minimum number of events stored in the queue, + # before providing a batch of events to the outputs. + # The default value is set to 2048. + # A value of 0 ensures events are immediately available + # to be sent to the outputs. + flush.min_events: 0 + + # Maximum duration after which events are available to the outputs, + # if the number of events stored in the queue is < `flush.min_events`. + flush.timeout: 0s + output.elasticsearch: hosts: '[${ELASTICSEARCH_HOSTS:elasticsearch:9200}]' username: '${ELASTICSEARCH_USERNAME:}' diff --git a/filebeat-kubernetes.yml b/filebeat-kubernetes.yml index d86c93c..0aa7451 100644 --- a/filebeat-kubernetes.yml +++ b/filebeat-kubernetes.yml @@ -100,6 +100,27 @@ setup: dashboards: enabled: false +# Internal queue configuration for buffering events to be published. +queue: + # Queue type by name (default 'mem') + # The memory queue will present all available events (up to the outputs + # bulk_max_size) to the output, the moment the output is ready to server + # another batch of events. + mem: + # Max number of events the queue can buffer. + events: 4096 + + # Hints the minimum number of events stored in the queue, + # before providing a batch of events to the outputs. + # The default value is set to 2048. + # A value of 0 ensures events are immediately available + # to be sent to the outputs. + flush.min_events: 0 + + # Maximum duration after which events are available to the outputs, + # if the number of events stored in the queue is < `flush.min_events`. + flush.timeout: 0s + output.elasticsearch: hosts: '[${ELASTICSEARCH_HOSTS:elasticsearch:9200}]' username: '${ELASTICSEARCH_USERNAME:}'