parent
9a3ea92cb6
commit
8a9799148c
|
@ -22,6 +22,7 @@ filebeat_logs:
|
|||
index_prefix: "gw-nginx"
|
||||
template_name: "gw-nginx-ug10cn"
|
||||
template_pattern: "gw-nginx-*"
|
||||
exclude_files: '_81\.log$'
|
||||
dissect_tokenizers:
|
||||
- tokenizer: "/%{}/%{}/%{}/%{}_%{sublog}.log"
|
||||
field_name: "log.file.path"
|
||||
|
|
|
@ -9,6 +9,9 @@ filebeat.config.inputs:
|
|||
filebeat.inputs:
|
||||
- type: log
|
||||
paths: {{ logs[log_type]['paths'] }}
|
||||
{% if logs[log_type]['exclude_files'] -%}
|
||||
exclude_files: {{ logs[log_type]['exclude_files'] }}
|
||||
{% endif -%}
|
||||
harvester_buffer_size: 40960
|
||||
ignore_older: {{ filebeat_older }}
|
||||
tail_files: {{ filebeat_tail_files | string | lower }}
|
||||
|
|
Loading…
Reference in New Issue