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
Not all of the different hashes supported by Slack's Message API are supported by this plugin.
For example the following config:
input {
stdin {
}
}
output {
slack {
url => "https://hooks.slack.com/services/mywebhookurl"
channel => "@sean.muth"
attachments => [
{ fallback => "This is the FALLBACK Message" },
{ color => "#ff0000" },
{ title => "This is the Title" },
{ title_link => "http://google.com" },
{ author => "This is the author" },
{ author_link => "http://google.com"},
{ fields => [
{ title => "Error Message"},
{ value => "This is the error message."},
{ short => false}
]}
]
}
}
Won't include the author at all, won't include the link for the title text, and isn't displaying the message "bar" in red. I'm also not sure how to add more than one field, as they are JSON arrays. (That could just be because I'm not formatting my attempts to add more than one field correctly)
@hatchetation you could be onto something there. I know I messed with a ton of different configs trying to get it to allow me to include multiple nodes of an attachment, as per the Slack Docu, but never got anywhere.
Ended up just using the http{} output and constructing my own JSON payload for slack, works like a charm!
I'm also not at the company I did this for, so I haven't looked at it in a while
Not all of the different hashes supported by Slack's Message API are supported by this plugin.
For example the following config:
Won't include the author at all, won't include the link for the title text, and isn't displaying the message "bar" in red. I'm also not sure how to add more than one field, as they are JSON arrays. (That could just be because I'm not formatting my attempts to add more than one field correctly)
The docs for Slack's Message API are here
The text was updated successfully, but these errors were encountered: