parent
0510968173
commit
aee6ab81a2
@ -0,0 +1,17 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
entgra-filebeat:
|
||||
image: filebeat:8.2.0-entgra-v2
|
||||
container_name: entgra-filebeat
|
||||
restart: unless-stopped
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
volumes:
|
||||
- ./files/iots/logs/:/opt/logs
|
||||
- ./files/filebeat/opt/filebeat-configs:/opt/filebeat-configs
|
||||
command: ["--strict.perms=false"]
|
||||
environment:
|
||||
- TZ=Asia/Colombo
|
||||
- LOGSTASH_HOST=logstash
|
||||
- LOGSTASH_PORT=5044
|
@ -0,0 +1,19 @@
|
||||
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
|
Loading…
Reference in new issue