pstehlik / gelf4j Goto Github PK
View Code? Open in Web Editor NEWGELF log4j Appender for http://graylog2.com server
License: Apache License 2.0
GELF log4j Appender for http://graylog2.com server
License: Apache License 2.0
Never mind, dumb comment. My bad
Some changes to the GELF messaging are coming in GL v 0.9.6:
Graylog2/graylog2-server@57b3daa
Make sure the appender works with that.
Hi
I have a situation where i need to log few values and put them into additional fields. What are the steps required to add additional fields to the graylog?
will the following steps work:
Note: The Java class from where i want to add the additional fields is not the is not the initiation point of my application.
Looking for the quick response from your end!
Regards,
Gaurav
When the graylog server's hostname becomes invalid my entire app (50 hosts) went down.
java.net.UnknownHostException: mygrayloghostname.mycoolapp.com
at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
at java.net.InetAddress.getAllByName(InetAddress.java:1084)
at java.net.InetAddress.getAllByName(InetAddress.java:1020)
at java.net.InetAddress.getByName(InetAddress.java:970)
at java_net_InetAddress$getByName.call(Unknown Source)
at com.pstehlik.groovy.graylog.Graylog2UdpSender.sendPacket(Graylog2UdpSender.groovy:24)
at com.pstehlik.groovy.graylog.Graylog2UdpSender$sendPacket.call(Unknown Source)
at com.pstehlik.groovy.gelf4j.net.GelfTransport.sendGelfMessageToGraylog(GelfTransport.groovy:85)
at com.pstehlik.groovy.gelf4j.net.GelfTransport$sendGelfMessageToGraylog.call(Unknown Source)
at com.pstehlik.groovy.gelf4j.appender.Gelf4JAppender.append(Gelf4JAppender.groovy:40)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.log(Category.java:856)
at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:597)
at org.apache.commons.logging.impl.SLF4JLocationAwareLog.error(SLF4JLocationAwareLog.java:225)
I have been trying to use your appender to log session data to my graylog instance from a tomcat application. However I continue to get the following error.
groovy.lang.MissingMethodException: No signature of method: org.apache.log4j.spi.LoggingEvent.getTimeStamp() is applicable for argument types: () values: []
I noticed this project is stale and there is a newer version at is maintained at https://github.com/realityforge/gelf4j. It's also confusing because this project doesn't show as a fork to https://github.com/realityforge/gelf4j or vice versa.
For some reason the stack traces are not showing up in the GELF messages.
Have to investigate what the issue is and fix for next release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.