Moocar / logback-gelf

Logback plugin to send GELF messages to graylog2 server
Apache License 2.0
147 stars 59 forks source link

Additional debug possibilities #39

Closed amra closed 10 years ago

amra commented 10 years ago

One of my environment is not logging to graylog and I am not possible to analyse it what's happening inside logback and lockback-gelf. The logging configuration very similar to other environment. Only fields facility, hostName and staticAdditionalFields are different in configuration of logback-gelf.

Message are not sent form my app. They are no obstacles on the network, because I checked it

  1. I was not able to capture packets sent from my app to my graylog server: windump udp port 12212
  2. I sent successfully a test message via command-line from my machine to graylog echo {"version": "1.1","host":"simulation-machine.com","short_message":"A test message from simulation", "full_message":"Backtrace here\n\nmore stuff","level":1,"_user_id":9001,"_some_info":"foo","_some_env_var":"bar"} | ncat -vvv -w 1 -u graylog-machine.com 12212

Do you have suggestion how can I analyse cause of the problem?

Moocar commented 10 years ago

Odd. Have you tried forking the code and putting a few print lines in? This would at least tell you if your logging configuration is correct