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

Log a direct link to the graylog message (github workaround) #60

Merged
merged 3 commits into from Oct 11, 2017

Conversation

johshoff
Copy link
Contributor

@johshoff johshoff commented Oct 7, 2017

This is a duplicate pull request of #39 to work around github displaying all commits in a merge operation. Text from original pull request:

A link to the stream is useful, but it's even more useful to be able to get
directly to the message. This is especially true if you are looking at an older
message that's outside of the time window given.

This commit misses one thing: referencing the correct index. Hopefully that can
be fixed before a merge. In the meantime I'm using graylog_deflector, which
will the index active at the time of using the URL.

I would love some help on how to get the current index. As mentioned in the
code comment, using msg.getFieldAs(String.class, "_index") gave me null.

A link to the stream is useful, but it's even more useful to be able to get
directly to the message. This is especially true if you are looking at an older
message that's outside of the time window given.

This commit misses one thing: referencing the correct index. Hopefully that can
be fixed before a merge. In the meantime I'm using `graylog_deflector`, which
will the index active at the time of using the URL.
"Alert" reflects how I am using it, but that might not be the case for everyone.
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.

None yet

2 participants