Skip to content

Formatting help #21

Answered by ziegfried
poiromaniax asked this question in Q&A
Apr 12, 2021 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Whatever you enter in the "Message" field in the alert follows Slack's text formatting rules. The quoted section in the screenshot is a triple-fenced codeblock (using 3 backticks).

The example from the screenshot would look something like this:

Suspicious authentication event detected :fire: <https://foo.com|Create incident>

```
$result._raw$
```

You can use Slack's message builder to take a look at the preview. The "message" input basically supplies the text property in the JSON payload. Note that Splunk would replace $result._raw$ with the field value before sending the message to the Slack API.

Here's what it would look like to enter the formatted message in the alert UI:

You can le…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@poiromaniax
Comment options

@ziegfried
Comment options

Answer selected by poiromaniax
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants