Giter Club home page Giter Club logo

gelf4j's People

Contributors

jsteiger-taulia avatar livingtocode avatar michaeldai-taulia avatar pstehlik avatar safetytrick avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gelf4j's Issues

Adding additional fields to grayyLog

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:

  1. Get GELF appender from log4j logger.
  2. create a map and set additionalFields in GELF Appender with this map.

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

UnknownHostException takes down app

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)

Error with tomcat

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: []

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.