2020-07-16 20:09:48 +02:00
|
|
|
filebeat.inputs:
|
|
|
|
- type: container
|
|
|
|
paths:
|
|
|
|
- '/var/lib/docker/containers/*/*.log'
|
2021-07-09 14:15:40 +02:00
|
|
|
- type: log
|
2020-11-03 12:38:00 +01:00
|
|
|
paths:
|
|
|
|
- /opt/openvidu/kurento-logs/*.log
|
|
|
|
fields:
|
|
|
|
kurento-media-server: true
|
|
|
|
ip: ${MEDIA_NODE_IP}
|
2021-02-08 13:23:02 +01:00
|
|
|
cluster_id: ${CLUSTER_ID}
|
2021-02-09 21:10:13 +01:00
|
|
|
node_id: ${NODE_ID}
|
2021-02-08 18:05:29 +01:00
|
|
|
node_role: medianode
|
2020-11-03 12:38:00 +01:00
|
|
|
fields_under_root: true
|
2020-07-16 20:09:48 +02:00
|
|
|
|
|
|
|
processors:
|
|
|
|
- add_docker_metadata:
|
|
|
|
host: "unix:///var/run/docker.sock"
|
|
|
|
- add_host_metadata:
|
|
|
|
netinfo.enabled: true
|
|
|
|
|
|
|
|
- decode_json_fields:
|
|
|
|
fields: ["message"]
|
|
|
|
target: "json"
|
|
|
|
overwrite_keys: true
|
2021-02-22 12:10:32 +01:00
|
|
|
- drop_event:
|
|
|
|
when.or:
|
|
|
|
- contains:
|
|
|
|
container.image.name: docker.elastic.co/beats/filebeat-oss
|
|
|
|
- contains:
|
|
|
|
container.image.name: docker.elastic.co/beats/metricbeat-oss
|
2020-07-16 20:09:48 +02:00
|
|
|
|
|
|
|
output:
|
|
|
|
elasticsearch:
|
|
|
|
indices:
|
|
|
|
- index: "filebeat-kurento-%{+yyyy.MM.dd}"
|
|
|
|
when.or:
|
2020-11-03 12:38:00 +01:00
|
|
|
- equals:
|
|
|
|
kurento-media-server: true
|
2021-07-09 14:15:40 +02:00
|
|
|
- index: "filebeat-mediasoup-%{+yyyy.MM.dd}"
|
|
|
|
when.or:
|
|
|
|
- contains:
|
|
|
|
container.image.name: openvidu/mediasoup-controller
|
2021-02-22 12:10:32 +01:00
|
|
|
- index: "filebeat-media-node-controller-%{+yyyy.MM.dd}"
|
|
|
|
when.or:
|
|
|
|
- contains:
|
|
|
|
container.image.name: openvidu/media-node-controller
|
|
|
|
- index: "filebeat-openvidu-recording-%{+yyyy.MM.dd}"
|
|
|
|
when.or:
|
|
|
|
- contains:
|
|
|
|
container.image.name: openvidu/openvidu-recording
|
2020-07-16 20:09:48 +02:00
|
|
|
pipelines:
|
|
|
|
- pipeline: kurento-pipeline
|
|
|
|
when.or:
|
2020-11-03 12:38:00 +01:00
|
|
|
- equals:
|
|
|
|
kurento-media-server: true
|
2020-07-16 20:09:48 +02:00
|
|
|
|
|
|
|
logging.json: true
|
|
|
|
logging.metrics.enabled: false
|
2021-07-09 14:15:40 +02:00
|
|
|
setup.ilm.enabled: false
|