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

Add context to gelf message? #105

Open
alekc opened this issue Jun 17, 2016 · 2 comments
Open

Add context to gelf message? #105

alekc opened this issue Jun 17, 2016 · 2 comments

Comments

@alekc
Copy link

alekc commented Jun 17, 2016

Hi, I am trying to figure out the way to add a context to logged gelf message (noob in java), with no lock for now.

I.e. I want to log a message "User Logged In", with additional fields (ip, browser, someInfo) which would be translated in ctxt_ on graylog. Is it possible to do this in Java?

@alekc alekc closed this as completed Jun 21, 2016
@t0xa
Copy link
Owner

t0xa commented Jun 21, 2016

Hey Alekc, sorry I've missed your assistance request. Did you solve it or you still need help?

@t0xa t0xa reopened this Jun 21, 2016
@alekc
Copy link
Author

alekc commented Jun 21, 2016

no worries, I've moved to custom solution (using low level https://github.com/Graylog2/gelfclient), although if it's possible to use something like threadcontext or other solution feel free to share :)

skorhone added a commit to skorhone/gelfj-alt that referenced this issue Sep 2, 2016
skorhone added a commit to skorhone/gelfj-alt that referenced this issue Sep 2, 2016
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

No branches or pull requests

2 participants