Skip to content
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

Conversation

ziegenberg
Copy link
Member

Log Configuration and Log4J appender example with using graylog and GELF log appender


.../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:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

120 cols

Copy link
Member Author

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.

@CGreweling CGreweling self-assigned this Apr 13, 2018
@CGreweling
Copy link
Member

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!
Copy link
Member

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?

Copy link
Member Author

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?

Copy link
Member Author

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?

Copy link
Member

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...

Copy link
Member

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?

Copy link
Contributor

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?

Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor

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

@ziegenberg ziegenberg force-pushed the t/add-admin-docu-for-gelf-log-appender-for-graylog branch 2 times, most recently from 3bc8f6e to 576598b Compare April 24, 2018 09:50
@ziegenberg
Copy link
Member Author

merge conflicts resolved


# Define the GELF destination
log4j.appender.gelf=org.graylog2.log.GelfAppender
log4j.appender.gelf.graylogHost=tcp:<URL OF GRAYLOG>
Copy link
Member

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 ?

@ziegenberg ziegenberg force-pushed the t/add-admin-docu-for-gelf-log-appender-for-graylog branch from 576598b to 5febe57 Compare June 7, 2018 19:26
@geichelberger
Copy link
Contributor

example configuration added

@geichelberger geichelberger force-pushed the t/add-admin-docu-for-gelf-log-appender-for-graylog branch from 8484d39 to d60f8ce Compare June 20, 2018 15:36
@CGreweling CGreweling merged commit ad0692a into opencast:develop Jun 22, 2018
@ziegenberg ziegenberg deleted the t/add-admin-docu-for-gelf-log-appender-for-graylog branch June 22, 2018 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants