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

wrong stream url after Graylog upgrade #97

Open
masterjus opened this issue Jun 2, 2023 · 4 comments
Open

wrong stream url after Graylog upgrade #97

masterjus opened this issue Jun 2, 2023 · 4 comments

Comments

@masterjus
Copy link

Ho there,

We've upgraded our Graylog to the version 5.1.1. They changed stream search url from https://grayloginstance.url/streams/<stream_id>/messages to https://grayloginstance.url/streams/<stream_id>/search and now when we click to the stream name to check what happens, we see the 404 page.

@masterjus
Copy link
Author

I'm not familiar with plugins for Graylog building and don't know how to check Graylog version, so not able to make PR.

The issue could be fixed here https://github.com/graylog-labs/graylog-plugin-slack/blob/dbfa16853b1310327090e7f676bbf68c069c578c/src/main/java/org/graylog2/plugins/slack/SlackPluginBase.java#LL67C19-L67C19

@janheise
Copy link

janheise commented Jun 2, 2023

return baseUrl + "streams/" + stream.getId() + "/messages?q=%2A&rangetype=relative&relative=3600";
is the line that creates the problem.

@masterjus
Copy link
Author

I think here should be applied a fix. I should look like return baseUrl + "streams/" + stream.getId() + "/search?q=%2A&rangetype=relative&relative=3600";

Replace messages to search

@masterjus
Copy link
Author

@Aenima4six2

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