Hello everybody, I'm having this issue when try to get docker metada. This is myconfiguration:
filebeat.inputs:
- type: docker
combine_partial: true
containers:
path: "/usr/share/dockerlogs/data"
stream: "all"
ids:
- "*"
processors:
# decode the log field (sub JSON document) if JSON encoded, then maps it's fields to elasticsearch fields
- decode_json_fields:
fields: ["log", "message"]
target: ""
# overwrite existing target elasticsearch fields while decoding json fields
overwrite_keys: true
- add_docker_metadata:
#host: "unix:///var/run/docker.sock"
output.console:
pretty: true
and in container volume i do use /var/run/docker.sock:/var/run/docker.sock
This config working in others server, but this server I deploy filebeat on it cannot get docker metadata. I also use user root and grant all privilege to docker.sock folder.
Thanks in advance