Hello today I use docker-compose for a number of services.
I would like to collect the container log with graylog, but it is not working.
I already have graylog running according to the following documentation:
http://docs.graylog.org/en/latest/pages/installation/docker.html
On the server where the containers are, I create the following file:
I came /etc/docker/daemon.json
{
“log-driver”: “gelf”,
“log-opts”: {
“gelf-address”: “udp: //x.x.x.x: 514”
}
}
Common servers when changing rsyslog I get the log in graylog normally, for the container this does not happen.
In system / inputs I have created a Geft UDP to provide, but not solve.
What would be the correct configuration?