mirror of https://github.com/OpenVidu/openvidu.git
58 lines
1.5 KiB
YAML
58 lines
1.5 KiB
YAML
filebeat.autodiscover:
|
|
providers:
|
|
- type: docker
|
|
hints.enabled: true
|
|
templates:
|
|
- condition:
|
|
contains:
|
|
docker.container.name: "nginx"
|
|
config:
|
|
- module: nginx
|
|
access:
|
|
input:
|
|
type: docker
|
|
containers:
|
|
ids: "${data.docker.container.id}"
|
|
stream: "stdout"
|
|
error:
|
|
input:
|
|
type: docker
|
|
containers:
|
|
ids: "${data.docker.container.id}"
|
|
stream: "stderr"
|
|
filebeat.inputs:
|
|
- type: container
|
|
paths:
|
|
- '/var/lib/docker/containers/*/*.log'
|
|
|
|
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
|
|
- add_fields:
|
|
fields:
|
|
cluster-id: ${OPENVIDU_PRO_CLUSTER_ID:undefined}
|
|
|
|
output:
|
|
elasticsearch:
|
|
hosts: ["${OPENVIDU_PRO_ELASTICSEARCH_HOST}"]
|
|
indices:
|
|
- index: "filebeat-redis-%{+yyyy.MM.dd}"
|
|
when.or:
|
|
- contains:
|
|
container.image.name: openvidu/openvidu-redis
|
|
- index: "filebeat-coturn-%{+yyyy.MM.dd}"
|
|
when.or:
|
|
- contains:
|
|
container.image.name: openvidu/openvidu-coturn
|
|
|
|
|
|
logging.json: true
|
|
logging.metrics.enabled: false
|
|
setup.ilm.enabled: false |