You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi! How can I parse messages from AWS SNS in JSON format for getting the "attributes.severity" value?
I have alert manager with next configuration.
Could anyone tell me how OpsGenie parse JSON messages?
For visibility to Community, we were able to get the priority parsing as expected by using this custom field @Dmitry Petriev already was extracting, but replaced it into the Custom Value to Opsgenie Priority:
For more on extracting custom fields as well, this Community Article might be helpful for others!
Hi @Dmitry Petriev ,
This article might help on how to extract "P2" into the alert: How to Extract Custom Fields and Data into an Alert
It'd realistically depend on how this field / value is being parsed in the alert's payload. I believe you're sharing what is sending from Alertmanager or AWS, so you'd want to review the Opsgenie Logs tab to get a better idea on what string processing or regex can be used.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I did it, but it doesn't work in the way I want. Could you tell me why the priority is still P3, but the value is P2?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We'd have to review the entire payload / Logs to provide a reason why this might not be parsing as expected.
Please open a ticket with Opsgenie support so we can review your account: https://support.atlassian.com/opsgenie/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, the task became easy: how to parse such part of JSON in extra properties field AWS SNS Integration:
"MessageAttributes" : {
"value" : {"Type":"String","Value":"P2"},
"key" : {"Type":"String","Value":"severity"}
I need to catch "P2"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.