jschniper / gelf_logger

An Elixir Logger backend for GELF
MIT License
29 stars 27 forks source link

Not sending logs to Logstash #9

Closed notbdu closed 7 years ago

notbdu commented 7 years ago

I'm running the latest version of logstash via docker. https://www.elastic.co/guide/en/logstash/current/docker.html

I'm running it via the "host" adapter (so logstash will start a GELF listener @ localhost:12201).

Logging via docker's native gelf log adapter works. --log-driver=gelf --log-opt gelf-address=udp://localhost:12201

I have configured gelf_logger to send messages to "localhost:12201" and all of the :gen_udp.send()s are going through just fine.

In fact, I can see all of the data if I listen for it via nc -ul 127.0.0.1 12201.

However, logstash is either not receiving or dropping the messages.