I have a play-2.2.3 application. I would like to send the logs to graylog2 server using GELF-TCP. I have tried using the me.moocar GELF logback appender, but it seems that there are issues because it is compiled with some other version of the logback core jar.
Can I configure logback to send logs (via TCP or UDP) to a graylog2 instance hosted elsewhere?
You can give logstash-gelf a try. It supports TCP and UDP channels (UDP is non-blocking). logstash-gelf is compiled against logback-classic version 1.0.13.
Example config: