-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error in sending GELF messages to logstash #87
Comments
Hi, could anyone respond to the query? I have been facing this issue randomly. Thanks |
Hello Swetha, Apologies for delay. Could you please share you log4j xml? I can try and enable more logging around "Could not send GELF message" so we can try and debug. Are you willing to update gelf 1.1.7 to newer version and test that? A. |
Hi Anton, Here is the Gelf appender related config in log4j.xml I am fine to update to the new version, but before that can we enable more Thanks On Tue, Apr 21, 2015 at 1:44 AM, Anton Yakimov [email protected]
|
Hi Anton, This issue is happening in production and we cannot afford to restart the production applications. Could you help in enabling more logging to figure out the root cause of the issue? Thanks |
Hi Swetha, At the moment no logging is available thats why I propsed new version where I will be able to publish new version around 20:00 gmt today. Anton
|
Thanks Anton. Let me know when you publish the new version so that I can update the jar in my environment to troubleshoot further. |
Hi, I've published version 1.1.11 to maven central. It should be available shortly. Please update your pom.xml dependencies:
Try to repeat your test case. This time more info should be available in catalina log. A. |
Hey Swetha, Have you tried new version? You can also can try to switch from udp to tcp by changing graylogHost to {{tcp:log1}}. You will also need to enable source on the server.
|
Hi Anton, I have used the new version of gelfj.jar in some of our applications and it is working fine. I will update you if we face the issue again. w.r.t tcp, how will the application work if the remote host is not responding? Will it queue the logs or will it crash the application? Thanks |
At the moment TCP doesn't retry failed call. This means you will lose log lines that cannot be send. Only AMQP transport resends message configurable amount of time. I would recommend you use AMQP transport for production critical application to ensure log delivery. |
Hi Anton, I tried the new gelfj.jar (v1.1.11) to send the logs to our ELK cluster. log4j:ERROR Error during sending GELF message. Error code: -1. |
Hi Sweth, I think I found bug and fixed @ 15842b8. Anton |
Hi Anton, Thanks for the fix. I would like to know what caused the issue here. Could you help in Thanks On Tue, May 5, 2015 at 5:18 PM, Anton Yakimov [email protected]
|
Looking at exception UDP Datagram channel got somehow closed. I assume this On Tue, May 5, 2015 at 2:59 PM, swethagaddam [email protected]
Vriendelijke groeten, |
Thanks Anton. Could you let me know the location of the new jar with the fix? It would be Thanks
|
Its already done. You need to wait around 1 hr before it is synced to
|
Thanks a lot Anton. Will let you know how this works! |
Hi. Any updates? |
Hi, I am using gelfj module in my application log4j.xml file to sending application logs to logstash which are in turn getting indexed in Elasticsearch.
I have observed that at times when my application starts, I see below error in catalina.out. If I restart my application, GELF initializes and i don't see the error. This is happening randomly. Could you help me in figuring out what could be the issue?
We are using gelf-1.1.7.jar and sending logs to remote logstash server.
Error:
log4j:ERROR Could not send GELF message
The text was updated successfully, but these errors were encountered: