Merge pull request '修复 multiline 属性不存在的bug' (#57) from pengln/filebeat:master into master
Reviewed-on: https://app.huanyuantech.com:10301/gitea/ansible-collection/filebeat/pulls/57
This commit is contained in:
commit
6133934b31
|
@ -10,7 +10,7 @@ filebeat.inputs:
|
||||||
{% 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 -%}
|
||||||
{% if logs[log_type]['multiline'] -%}
|
{% if 'multiline' in logs[log_type] and logs[log_type]['multiline'] -%}
|
||||||
multiline.type: pattern
|
multiline.type: pattern
|
||||||
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
|
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
|
||||||
multiline.negate: true
|
multiline.negate: true
|
||||||
|
|
Loading…
Reference in New Issue