-
Notifications
You must be signed in to change notification settings - Fork 230
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
MH-12823: Log Configuration and GELF Log4J with graylog #182
MH-12823: Log Configuration and GELF Log4J with graylog #182
Conversation
|
||
.../etc/org.ops4j.pax.logging.cfg | ||
|
||
Each Log4J appender can be configured in a similar fashion to the graylog example down below. The following requirements have to be met: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
120 cols
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will fix. Time to get #139 ready.
I will try to set up graylog and Review this. Looks really interesting. |
|
||
|
||
Add gelfj-X.X.X.jar (works up to version 1.1.14) to the appropriate folder in the karaf system folder (e.g. `/system/org/graylog2/gelfj/X.X.X/gelfj-X.X.X.jar`) | ||
The directory has the same structure as a maven repository! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this will get into the Opencast Codebase. I think it schould be integrated during the build process. So as a dependency in the main pom where the ops4j is included. @lkiesow whats your opinion about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getting it into Opencast codebase would have been our second step, if people are satisfied and interested in "more".
question is: does it work for you after all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CGreweling Have you had a chance yet to try out this logging configuration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ziegenberg sorry for the late reply. I did not get it running on the opencast side...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ziegenberg could you send me a step by step documentation, with full example, how you did this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CGreweling do you get an error message from karaf or just no logs in graylog?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@geichelberger: i downloaded a precompiled jar, which didn't work. maven build did not work from source. But i got it running now with version 1.1.13 and gradle build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ziegenberg sorry, for the long delay. If you could add an example and resolve the conflicts i will merge this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just seen this sorry, I should say we have been using Gelfj and Graylog2 for the last 5 years
3bc8f6e
to
576598b
Compare
merge conflicts resolved |
|
||
# Define the GELF destination | ||
log4j.appender.gelf=org.graylog2.log.GelfAppender | ||
log4j.appender.gelf.graylogHost=tcp:<URL OF GRAYLOG> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An Example would be nice here is it tcp://192.168.0.22 or an dns name lije tcp:yourdomain.com?
The same for the port is the standard port 80 ?
576598b
to
5febe57
Compare
example configuration added |
8484d39
to
d60f8ce
Compare
Log Configuration and Log4J appender example with using graylog and GELF log appender