forked from ansible-collection/filebeat
Merge pull request '调整默认资源限制' (#50) from pengln/filebeat:master into master
Reviewed-on: https://app.huanyuantech.com:10301/gitea/ansible-collection/filebeat/pulls/50
This commit is contained in:
commit
417012b35a
|
@ -1,12 +1,15 @@
|
||||||
logging.json: false
|
logging.json: false
|
||||||
|
|
||||||
|
queue.mem:
|
||||||
|
events: {{ filebeat_queue_mem_events | default(1024) }}
|
||||||
|
|
||||||
filebeat.inputs:
|
filebeat.inputs:
|
||||||
- type: log
|
- type: log
|
||||||
paths: {{ logs[log_type]['paths'] }}
|
paths: {{ logs[log_type]['paths'] }}
|
||||||
{% if "exclude_files" in logs[log_type] -%}
|
{% if "exclude_files" in logs[log_type] -%}
|
||||||
exclude_files: {{ logs[log_type]['exclude_files'] }}
|
exclude_files: {{ logs[log_type]['exclude_files'] }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
harvester_buffer_size: 40960
|
harvester_buffer_size: 2048
|
||||||
ignore_older: {{ filebeat_older }}
|
ignore_older: {{ filebeat_older }}
|
||||||
tail_files: {{ filebeat_tail_files | string | lower }}
|
tail_files: {{ filebeat_tail_files | string | lower }}
|
||||||
|
|
||||||
|
@ -49,7 +52,7 @@ output.elasticsearch:
|
||||||
password: {{ logs[log_type]['es_passwd'] | default('') }}
|
password: {{ logs[log_type]['es_passwd'] | default('') }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
bulk_max_size: 1500
|
bulk_max_size: {{ filebeat_bulk_max_size | default(500) }}
|
||||||
flush_interval: 5s
|
flush_interval: 5s
|
||||||
compression_level: {{ filebeat_compression_level }}
|
compression_level: {{ filebeat_compression_level }}
|
||||||
worker: {{ filebeat_output_works }}
|
worker: {{ filebeat_output_works }}
|
||||||
|
|
Loading…
Reference in New Issue