-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
MS Teams config #2727
Comments
I configured Elastalert with ms team and it work but now i want to gave them a nice look to be more humain readable (short msg also)!! |
try following along with this. for each argument you add in the list coorelate it to your alert text. remember arrays start at index 0 |
Can you show config where ms teams is working? I cannot get it to work no matter what I do |
OMG that fixed it for me <3 |
Is there a way that I can sponsor a fix to the formatting for messages that come from Teams? In Telegram it looks OK in teams its just a huge jumble of text and it's essentially unusable. |
I haven't tried it, but ms_teams_alert_fixed_width seems to be relevant. https://github.com/Yelp/elastalert/blob/master/elastalert/alerts.py#L1071
https://elastalert.readthedocs.io/en/latest/ruletypes.html#ms-teams
|
Hi,
|
There is also this python library that handles the formatting for messages sent to Teams webhooks. |
@mcmurrayd09 Thanks for sharing that.
Then you can use markdown to format your text. Otherwise it will post your text as is. |
Dumping some ms teams config tricks. Not a lot of examples online and wanted to share the quirks i got through in case others have similar problems as i do.
alert_text_type: alert_text_only
- removes index dump at the end of the alert to make it look cleaner.that's wrong
should be:
that's also wrong, ms teams expects a string not a list
correct:
ms_teams_alert_summary: "test"
i've also discovered this summary is totally pointless. No matter what i put here it doesn't display in the alert. Use the alert_test to handle your formatting and what you want to show. Hope this saves someone time googling and finding this post rather than reading documentation. The documentation is great btw!
Edit: ms_teams_alert_summary does in fact do something. if you enable push notifications on your mobile devices or notifications in the bottom right the text you put here is what comes up
The text was updated successfully, but these errors were encountered: