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

How to create an alert filter based on the text within an alert's description?

Issy Pearson December 8, 2022

I'm having trouble filtering alerts that use the Slack integration. In this case I would only like alerts containing "This is a test" in their description field to use a Slack integration. Below is the filter I have applied to my Slack integration.

Screenshot 2022-12-12 112901.png

I've also checked and confirmed that alerts contain "This is a test" in the description field by going to  OpsGenie > Settings > Logs.

Any help would be much appreciated.

Thanks :)

1 answer

1 accepted

1 vote
Answer accepted
Nick H
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 11, 2022

Hi @Issy Pearson ,

Maybe try filtering with regex using one of these values:

.*(This is a test).*

(?i).*(This is a test).*

The second would be case insensitive.

 slack1.jpg

 

I typically use regex101 to validate if an expression will work.

Issy Pearson December 11, 2022

@Nick H Yep that works thank you! I shall definitely have to brush up on my regex.

 

Cheers,

Issy

Like Nick H likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events