Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,457,853
Community Members
 
Community Events
176
Community Groups

How to configure alert message for Sumologic to Opsgenie

The opsgenie integration docs ( https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-sumo-logic/ ) are woefully out of date with the sumologic ones (https://help.sumologic.com/Manage/Connections-and-Integrations/Webhook-Connections/Set_Up_Webhook_Connections#Webhook_payload_variables)

 

I want to send things like `alertResponseUrl` and define what the alert message should be, but opsgenie doesn't allow that and ignores json fields that aren't in their deprecated list.

 

Have other folks had success configuring sumologic alerts to be better?

1 answer

1 vote

Hi Nat!

 

Justin here, from Opsgenie support - happy to help!

 

While the expected payload from Sumo Logic is preset (meaning that any automatic mapping of fields in the payload to the drag and drop dynamic fields in the alert fields configuration is not able to be modified), you can send additional data from Sumo Logic's webhook and extract it on the Opsgenie side of things (to be added to alert fields, like the alert message). 

 

The documentation that addresses how to do this can be found here:

 

https://support.atlassian.com/opsgenie/docs/dynamic-fields-in-opsgenie-integrations/#Using-Raw-Parameters-From-Webhook-Url--Payload-and-Headers

 

In the case of the Sumo Logic integration, we would be extracting this data from the payload - and we can access the payload object in Opsgenie using the {{_payload}} syntax. For an example - let's say I wanted to send the 'alertResponseUrl' from Sumo Logic to Opsgenie - I could configure the webhook body in Sumo Logic like this:

 

{
"searchName": "{{SearchName}}",
"searchDescription": "{{SearchDescription}}",
"searchQuery": "{{SearchQuery}}",
"searchQueryUrl": "{{SearchQueryUrl}}",
"timeRange": "{{TimeRange}}",
"fireTime": "{{FireTime}}",
"rawResultsJson": "{{RawResultsJson}}",
"numRawResults": "{{NumRawResults}}",
"priority" : "P3",
"aggregateResultsJson" : "{{AggregateResultsJson}}",
"alertResponseUrl": "{{alertResponseUrl}}"
}

 

And then within the Advanced integration settings in Opsgenie, extract that 'alertResponseUrl' value out with this:

 

{{_payload.alertResponseUrl}}

 

In practice, if I wanted to append that url value to the alert message field, it would look like this:

 

Screen Shot 2022-02-07 at 9.18.53 AM.png

 

 

So, with this, you should be able to get any data that exists within Sumo Logic sent over to Opsgenie and mapped out to a target alert field.

 

Let me know if that helps get what you need, or if you have any other questions. 

 

Thanks!

 

Justin S

Atlassian Cloud Support

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events