entgra-elk/entgra-filebeat/files/filebeat/filebeat.template.yml

20 lines
453 B
YAML
Raw Normal View History

2024-07-03 08:30:51 +00:00
filebeat.inputs:
- type: log
enabled: true
tags: ["SwitchGearLogs"]
paths:
- /usr/share/filebeat/elk/switchgear.log
exclude_files: [".gz$"]
exclude_lines: ["^.*TRACE.*$"]
output.logstash:
hosts: ["${LOGSTASH_HOST}:${LOGSTASH_PORT}"]
processors:
- add_docker_metadata:
host: "unix:///host_docker/docker.sock"
- add_fields:
target: ""
fields:
node.name: "${HOST_PRIVATE_IP}" #custom node name