QiuMM commented on issue #6342: Add support for Graylog
URL: https://github.com/apache/incubator-druid/pull/6342#issuecomment-422499379
 
 
   We use Graylog in production to collect logs from different druid nodes. And 
UDP is used to send logs to Graylog server, so it makes little hurt to Druid. 
However, we encountered a terrible error today when the Graylog server can not 
be connected:
   ```
   Exception in thread "main" java.lang.NoSuchMethodError: 
org.apache.logging.log4j.Logger.error(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
           at 
biz.paluch.logging.gelf.log4j2.GelfLogAppender$1.reportError(GelfLogAppender.java:169)
           at 
biz.paluch.logging.gelf.intern.MessagePostprocessingErrorReporter.reportError(MessagePostprocessingErrorReporter.java:23)
           at 
biz.paluch.logging.gelf.intern.sender.AbstractNioSender.isConnected(AbstractNioSender.java:79)
           at 
biz.paluch.logging.gelf.intern.sender.GelfUDPSender.sendDatagrams(GelfUDPSender.java:54)
           at 
biz.paluch.logging.gelf.intern.sender.GelfUDPSender.sendMessage(GelfUDPSender.java:47)
           at 
biz.paluch.logging.gelf.log4j2.GelfLogAppender.append(GelfLogAppender.java:344)
           at 
org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:152)
           at 
org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:125)
           at 
org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:116)
           at 
org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
           at 
org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:390)
           at 
org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:378)
           at 
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:362)
           at 
org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:352)
   ```
   Then we found `logstash-gelf 1.12.0` dependent on `log4j 2.9.1` which has 
some implementations that `log4j 2.5` does not have (druid use 2.5 version). So 
we need to use a lower version of `logstash-gelf`. I'll submit a new commit to 
fix this.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to