Compare commits

..

2 Commits

2 changed files with 8 additions and 0 deletions

View File

@ -34,6 +34,7 @@ filebeat_logs:
index_prefix: "mgr" index_prefix: "mgr"
template_name: "mgr-cp" template_name: "mgr-cp"
template_pattern: "mgr-*" template_pattern: "mgr-*"
multiline: true
sublog: cp sublog: cp
filebeat_older_dir: "/data/opt/filebeat/{{ instance_name }}" filebeat_older_dir: "/data/opt/filebeat/{{ instance_name }}"
filebeat_older_data_dir: data2 filebeat_older_data_dir: data2

View File

@ -10,6 +10,13 @@ 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'] -%}
multiline.type: pattern
multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
multiline.negate: true
multiline.match: after
multiline.skip_newline: true
{% endif -%}
harvester_buffer_size: 2048 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 }}