Slack Message Node#
The Slack Message Node sends a message to a Slack channel.
Configuration#
Token
, required: a Slack access token for the desired server.Channel
, required: the channel that will receive the message, without a preceding#
character.Message
: the message body; Markdown is supported.Verbatim Text
: optional text which will be displayed verbatim, with no Markdown parsing.
Output#
The node does not modify the payload.
Example#
This example gathers information about currently-connected ingesters, formats that information into a text representation, and posts it to a Slack channel.
The Text Template node is configured with the following template:
Connected Ingesters:
{{ range .gravwell_ingesters }}
{{ .Name }} {{ .Version }} {{ .RemoteAddress }} {{ .Uptime }} {{ .UUID }}
{{ end }}
The output in Slack looks like this: