From d75cf5f4a62986328492d19ab43065b51b4c73e4 Mon Sep 17 00:00:00 2001 From: pengln Date: Thu, 23 Dec 2021 10:17:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=BB=98=E8=AE=A4=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/roles/filebeat/templates/filebeat.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/filebeat/templates/filebeat.yml b/playbooks/roles/filebeat/templates/filebeat.yml index 492d136..1c74245 100644 --- a/playbooks/roles/filebeat/templates/filebeat.yml +++ b/playbooks/roles/filebeat/templates/filebeat.yml @@ -1,12 +1,15 @@ logging.json: false +queue.mem: + events: {{ filebeat_queue_mem_events | default(1024) }} + filebeat.inputs: - type: log paths: {{ logs[log_type]['paths'] }} {% if "exclude_files" in logs[log_type] -%} exclude_files: {{ logs[log_type]['exclude_files'] }} {% endif -%} - harvester_buffer_size: 40960 + harvester_buffer_size: 2048 ignore_older: {{ filebeat_older }} tail_files: {{ filebeat_tail_files | string | lower }} @@ -49,7 +52,7 @@ output.elasticsearch: password: {{ logs[log_type]['es_passwd'] | default('') }} {% endif -%} - bulk_max_size: 1500 + bulk_max_size: {{ filebeat_bulk_max_size | default(500) }} flush_interval: 5s compression_level: {{ filebeat_compression_level }} worker: {{ filebeat_output_works }}