From 87d8e4f7eb34a0f3ca4b8c1ed9aa5483371db6df Mon Sep 17 00:00:00 2001 From: Eugene Kirdzei Date: Mon, 4 Sep 2023 15:07:19 +0200 Subject: [PATCH 1/2] #97: Fix stream url --- src/main/java/org/graylog2/plugins/slack/SlackPluginBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/graylog2/plugins/slack/SlackPluginBase.java b/src/main/java/org/graylog2/plugins/slack/SlackPluginBase.java index 4ea476d..29cbcb8 100644 --- a/src/main/java/org/graylog2/plugins/slack/SlackPluginBase.java +++ b/src/main/java/org/graylog2/plugins/slack/SlackPluginBase.java @@ -64,7 +64,7 @@ protected String buildStreamLink(String baseUrl, Stream stream) { baseUrl = baseUrl + "/"; } - return baseUrl + "streams/" + stream.getId() + "/messages?q=%2A&rangetype=relative&relative=3600"; + return baseUrl + "streams/" + stream.getId() + "/search?q=%2A&rangetype=relative&relative=3600"; } protected static SlackMessage createSlackMessage(Configuration configuration, String message) { From 38ba84eeef3a93aaf362ca9cd20f1de55d535992 Mon Sep 17 00:00:00 2001 From: Eugene Kirdzei Date: Mon, 4 Sep 2023 16:05:17 +0200 Subject: [PATCH 2/2] Chnage plugin dependency --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index a87acaf..581b7a9 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.graylog.plugins graylog-plugin-slack - 3.1.0 + 3.1.1 jar ${project.artifactId} @@ -33,7 +33,7 @@ 1.8 1.8 /usr/share/graylog-server/plugin - 2.0.0 + 5.1.0