Issue
Inbound filter by message settings are not filtering events on my Sentry project.
Applies To
- Customer with Business or higher plan
- Error Monitoring
- Inbound Filters
Resolution
Sentry's inbound filter tries to match your options against the following information in an event. All fields below can be found in the event's JSON (here are instructions on how to find an event's JSON):
- Event's message
- The exception type and value in the format "{exception.type}: {exception.value}"
For example, an event's JSON has exception type "ZeroDivisionError" and value "division by zero". The filter will match the string: "ZeroDivisionError: division by zero". This combination usually matches the "title" field in the JSON.
Note that the filter is not a regex but supports glob matching, thus another option to filter errors is "ZeroDivisionError*".
You can complete the following checklist to ensure that you are setting your Inbound Filters correctly:
- Please allow some time for newly added filtering to apply.
- Keep in mind that this will only apply in new incoming issues; old issues will not automatically be deleted or removed once a new filter is applied.
- Check the JSON file of the event and check that the title key matches the error message, or partial error message, you are attempting to filter.
- Ensure that in the Inbound Filter -> Error Message you've placed your entry on a newline; separate entries will only be recognized with a newline.
- Does your Inbound Filter -> Error Message entry follow glob pattern matching?
- If your message contains a special character then you will need to place an escape character before it. For example if:
title: "I want to filter "stuff" and things"
you'd need to add to your Inbound Filter -> Error Message:
"I want to filter \"stuff\" and things"