-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Real examples needed #24
Comments
I agree, some examples would be great. I'm stuck at the same place jizhoubo is trying to use the "attachment" properties. |
ditto, how is attachment meant to be used? |
Hey there. I ended up just using the http output and built my own json
|
That is a great suggestion @seanmuth ! thx |
Hey, sorry for he complete lack of response. I have been really busy lately, and also don't really know ruby. :). Will try to get to this after my current deadline. Thanks @seanmuth for providing a better solution! |
@seanmuth how did you format your output plugin to be payload={}? I've been trying to get this to work and nothing seems to satisfy slack. |
@mhunsber I no longer work at the company I did this work for, and honestly can't remember what exactly I did! I'm trying to get a coworker there to send me the redacted logstash.conf file so I can share my solution will you guys. |
@mhunsber Alrighty, I got a coworker to send me the .conf file we used. Below are the relevant pieces: first I build the json payload within a
then the
|
@seanmuth thank you so much for replying so quickly today! I have been beating my head against a wall all day and this solved it. |
@mhunsber good to hear! It's the end of my sprint and I haven't had much to do today anyways! |
@seanmuth I tried your configuration, it works great, but there are some messages which are not able to go to slack and returning 400 (i.e Bad Request). Do you know any workaround ? |
Sample is here
|
Hi,
Would you mind providing a worked example? I am able to send message to slack webhook, and receive slack notifications, however, I cannot properly use slack's attachment, which I believe is due to encoding / escaping issue.
It would be a great help if you can provide an example, containing usages of "text" and "attachment" properties
The text was updated successfully, but these errors were encountered: