You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since log messages often contains special characters in markdown, I would like to forward messages in code blocks.
some error messages lib/foo.rb:100:in `initialize'
(NOTE: This is an example for GitHub flavored markdown, and we need to use different format for Slack.)
Background
I am using Slack now, and this Plugin is really useful to forward messages. I am mainly using the plugin to send some error messages to Slack.
The problem here is that since the message often contains special characters, we often see some malformated messages.
Current Message Example
Following are the sample messages sent to Slack (Ruby error message with backtrace and URL path). Although this is formatted with GitHub flavored markdown, it still shows the underlying problems on Slack notification.
returnString.format("%s*%s in Graylog stream %s*:\n> %s", audience, messageLink, titleLink, msg.getMessage());
The text was updated successfully, but these errors were encountered:
aeroastro
changed the title
Option to preformat messages by wrapping it with triple backquotes `
Option to preformat messages by wrapping it with triple backquotes
May 22, 2019
Summary
Since log messages often contains special characters in markdown, I would like to forward messages in code blocks.
(NOTE: This is an example for GitHub flavored markdown, and we need to use different format for Slack.)
Background
I am using Slack now, and this Plugin is really useful to forward messages. I am mainly using the plugin to send some error messages to Slack.
The problem here is that since the message often contains special characters, we often see some malformated messages.
Current Message Example
Following are the sample messages sent to Slack (Ruby error message with backtrace and URL path). Although this is formatted with GitHub flavored markdown, it still shows the underlying problems on Slack notification.
Here, we can see the following problems, and I believe this is pretty common when handling log messages.
mispaired inline code
Proposed Solution
I just would like to make the message preformatted with
```
like the GitHub app for Slack.This can be achieved by improving the following line and adding some options.
graylog-plugin-slack/src/main/java/org/graylog2/plugins/slack/output/SlackMessageOutput.java
Line 127 in dbfa168
The text was updated successfully, but these errors were encountered: