ERROR - Could not send message to Slack


(Tafsir) #1

Hi All

Sometimes I am getting ERROR [OutputBufferProcessor] in my graylog master node logs. Here is the complete error log:

2019-03-14T12:47:47.779Z ERROR [OutputBufferProcessor] Error in output [class org.graylog2.plugins.slack.output.SlackMessageOutput].
java.lang.RuntimeException: Could not send message to Slack.
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:94) ~[?:?]
	at org.graylog2.buffers.processors.OutputBufferProcessor$1.run(OutputBufferProcessor.java:191) [graylog.jar:?]
	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176) [graylog.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_141]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_141]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
Caused by: org.graylog2.plugins.slack.SlackClient$SlackClientException: Unexpected HTTP response status 404
	at org.graylog2.plugins.slack.SlackClient.send(SlackClient.java:74) ~[?:?]
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:92) ~[?:?]
	... 7 more
2019-03-14T12:48:33.574Z ERROR [OutputBufferProcessor] Error in output [class org.graylog2.plugins.slack.output.SlackMessageOutput].
java.lang.RuntimeException: Could not send message to Slack.
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:94) ~[?:?]
	at org.graylog2.buffers.processors.OutputBufferProcessor$1.run(OutputBufferProcessor.java:191) [graylog.jar:?]
	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176) [graylog.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_141]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_141]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
Caused by: org.graylog2.plugins.slack.SlackClient$SlackClientException: Unexpected HTTP response status 404
	at org.graylog2.plugins.slack.SlackClient.send(SlackClient.java:74) ~[?:?]
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:92) ~[?:?]
	... 7 more
2019-03-14T12:48:46.428Z ERROR [OutputBufferProcessor] Error in output [class org.graylog2.plugins.slack.output.SlackMessageOutput].
java.lang.RuntimeException: Could not send message to Slack.
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:94) ~[?:?]
	at org.graylog2.buffers.processors.OutputBufferProcessor$1.run(OutputBufferProcessor.java:191) [graylog.jar:?]
	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176) [graylog.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_141]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_141]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_141]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_141]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_141]
Caused by: org.graylog2.plugins.slack.SlackClient$SlackClientException: Unexpected HTTP response status 404
	at org.graylog2.plugins.slack.SlackClient.send(SlackClient.java:74) ~[?:?]
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:92) ~[?:?]
	... 7 more

And this keeps on repeating.

Graylog Version - 2.4
Elasticsearch Version - 5.6

Please help me in this.


(Tmacgbay) #2

404 not found… Is your slack incoming webhook responding to a test POST?