#Alert filtering by tags

7 messages · Page 1 of 1 (latest)

lofty harbor
#

Hi, I just added a sentry event processor to my react app to have custom tags on each alert getting to sentry.
I now wish to filter by those tags.
What is the best option to do so?

steel peak
#

You can search on the issues feed by just typing the tag name in the search bar

If you want to get alerted for specific tag's key values , You can go to Alerts-> Your Issue alert rule -> Add an if condition for tags

lofty harbor
#

Would it also allow me to filter out such alerts? For example - I want to ignore alerts that have a specific custom tag value and that the alert message includes a specific substring/words

#

OK I got my answer to my last question - I see that you can do it through the UI

#

Another question tho is - Is there any other ways to do it? maybe through code?

steel peak
#

We have APIs and Terraform for Alert rules too

lofty harbor
#

Thanks for the answer.
I started playing with it and encountered an issue for me - This set of rules is combined and there's no way to add a single rule with two parameters.
My scenario is where I wanna mute two issues:

  1. Tag organization is A and the message contains "error 404"
  2. Tag organization is B and the message contains "error 505"

BUT I don't want it to mute issues originated by organization A with message "error 505"

Is there a way I can do it with alert rules?

It seems that I can't do it