Closed LM1LC3N7 closed 7 years ago
Hi,
I have some docker containers running, including:
I create the logspout container with this command:
name="logspout" image="micahhausler/logspout:gelf" docker run -d -t \ --name="$name" \ --restart=unless-stopped \ --volume /etc/localtime:/etc/localtime:ro \ --volume /var/run/docker.sock:/var/run/docker.sock \ --env 'DEBUG=true' \ $image gelf://log.myserver.tld:12201
docker logs -f logspout
# logspout v3-master by gliderlabs # adapters: syslog gelf raw udp tcp # options : debug:true persist:/mnt/routes # jobs : http[routes,logs]:80 pump # routes : # ADAPTER ADDRESS CONTAINERS SOURCES OPTIONS # gelf log.myserver.tld:12201 map[] 2017/05/28 18:18:06 pump: c1c61d8de09d ignored: tty enabled 2017/05/28 18:18:06 pump: d8659f537712 started 2017/05/28 18:18:06 pump: 6af7e91b25c9 started 2017/05/28 18:18:06 pump: da77573215a9 started 2017/05/28 18:18:06 pump: 2bb6c6ace64d started 2017/05/28 18:18:06 pump: 76866516422e started 2017/05/28 18:18:06 pump: d60895c07b63 started 2017/05/28 18:18:06 pump: 0f8ec902cb7f started 2017/05/28 18:18:06 pump: f78ac681c652 started 2017/05/28 18:18:06 pump: 4de96fdda29e started 2017/05/28 18:18:06 pump: 4eb8685d6a70 started 2017/05/28 18:18:06 pump: 4cf8bed13869 started 2017/05/28 18:18:06 pump: 96cb78fccbc1 started 2017/05/28 18:18:06 pump: f1c510f38c9e started 2017/05/28 18:18:06 pump: d0fd409685f8 started 2017/05/28 18:18:06 pump: a00eabd16cf7 started 2017/05/28 18:18:06 pump: 6f2556f08009 started 2017/05/28 18:18:06 pump: bc2176dbb585 started 2017/05/28 18:18:06 pump: c712b85d8a26 started 2017/05/28 18:18:06 pump: 26ed952b1d5f ignored: tty enabled 2017/05/28 18:18:06 pump: 25b8755a1fb7 ignored: tty enabled 2017/05/28 18:18:06 pump: 468497e4c38c started 2017/05/28 18:18:06 pump: 2c883d00ca1d started 2017/05/28 18:18:06 pump: cca8cae49377 started
Graylog doesn't receive any logs on the GELF UDP input. however if I use netcat to send a test GELF log, it is working.
netcat
echo -e '{"version": "1.1","host":"example.org","short_message":"Short message","full_message":"Backtrace here\n\nmore stuff","level":1,"_user_id":9001,"_some_info":"foo","_some_env_var":"bar"}\0' | nc -u -w 1 log.myserver.tld 12201
Any idea to resolv this problem?
Thanks.
It seems that this is a firewall issue, I am searching why.
Hi,
I have some docker containers running, including:
Starting logspout
I create the logspout container with this command:
Logspout output
docker logs -f logspout
Graylog
Graylog doesn't receive any logs on the GELF UDP input. however if I use
netcat
to send a test GELF log, it is working.Any idea to resolv this problem?
Thanks.