Search is available on several major sentry.io views: Issues, Events, and Releases.
Looking for information on searching and Discover?
Search queries are constructed using a
key:value pattern, with an optional raw search at the end. Each
key:value pair is a
token and the optional raw search is itself a single
tokens are treated as issue or event properties. The optional raw search is treated as a single
token and searches event titles/messages.
is:resolved user.username:"Jane Doe" server:web-8 example error
In the example above, there are three keys (
server:), but four tokens:
user.username:"Jane Doe" are standard search tokens because both use reserved keywords. See Issue Properties and Event Properties for appropriate keyword usage. The token
server:web-8 is pointing to a custom tag sent by the Sentry SDK. See Custom Tags for more information on how to set tags.
example error is utilizing the optional raw search and is passed as part of the issue search query (which uses a CONTAINS match similar to SQL). When using the optional raw search, you can provide one string, and the query uses that entire string.
Search for Releases supports raw text but not query syntax.
AND between tokens, and use parentheses
() to group conditions.
AND can also be used between non-aggregates and aggregates. However,
Non-aggregates filter data based on specific tags or attributes. For example,
user.username:janeis a non-aggregate field.
Aggregates filter data on numerical scales. For example,
count()is an aggregate function and
count():>100is an aggregate filter.
Some examples of using the
# a valid `OR` query browser:Chrome OR browser:Opera # an invalid `OR` query user.username:janedoe OR count():>100
Also, the queries prioritize
OR. For example, "x
OR z" is the same as "(x
OR z". Parentheses can be used to change the grouping. For example, "x
We recommend you never use reserved keywords (such as
project_id) as tags. But if you do, you must use the following syntax to search for it:
By default, search terms use the
AND operator; that is, they return the intersection of issues/events that match all search terms.
To change this, you can use the negation operator
! to exclude a search parameter.
In the example above, the search query returns all Issues that are unresolved and have not affected the user with the email address
Search supports the wildcard operator
* as a placeholder for specific characters and strings.
In the example above, the search query will match on
browser values like
"Safari 11.0.3", etc.
You may also combine operators like so:
In the above example, the search query returns results which do not have message values like
In the examples above, we've highlighted a couple of example properties you can search on:
browser, etc. Below is a canonical list of all available search terms.
Issues are an aggregate of one or more events. Searchable properties include workflow status, assignment, aggregate counts, and age.
Below is a list of Issue-level tokens reserved and known to Sentry:
|age||Restrict results to issues created since |
|age:-24h||Return issues that are new in the last 24 hours.|
|age:+12h||Return issues older than 12 hours.|
|age:+12h age:-24h||Return issues created between 12 and 24 hours ago.|
|assigned||Filter on the user which the issue is assigned to. Values can be a user ID (your email address), |
|assigned_or_suggested||Filter on the user or team to which the issue is assigned or suggested to be assigned. Suggested assignees are determined by matching ownership rules and suspect commits. Values can be a user ID (your email address), |
|bookmarks||Filter on the user which the issue is bookmarked by. Values can be your user ID (your email address) or |
|first-release||Restrict results to issues first seen within the given release. Exact match on the version of a release, or |
|has||Restrict results to issues which have any value for a tag.|
|has:user||Restrict results to issues which have a user value for a tag.|
|is||Filter on various properties of an issue.|
|Filter on the state of an issue.|
|Return issues based on whether they are are assigned or not.|
|Return issues based on whether they are linked (to an external issue tracker) or not.|
|lastSeen||Restrict results to issues that were last seen since or until a given point in time. Usage is similar to the |
|lastSeen:+30d||Return issues last seen 30 days ago or more.|
|lastSeen:-2d||Return issues last seen within the last two days.|
|timesSeen||Restrict results to issues that have been seen exactly, at least, or at most some number of times.|
An exact match token:
Upper or lower bounds tokens:
Events are the underlying event data captured using Sentry SDKs (read: errors and exceptions).
When searching on Event properties within the Issues search, Issue Search will return any Issue that has one or more events matching the supplied event filters.
Below is a list of Event-level tokens reserved and known to Sentry:
|location||Restrict results to the events with a matching location.|
|message||Restrict results to events with a matching message.|
|environment||Restrict results to events tagged with the matching environment.|
|release||Restrict results to events tagged with the matching release. You can create a token with an exact match on the version of a release, or |
|transaction||Restrict results to events tagged with a URL template/job name.|
|Restrict results to events triggered by a geographic area.|
|Restrict results based on the HTTP request context.|
|Restrict results to events affecting a given user.|
|event.timestamp||Restrict results to events that occurred at the given timestamp. This filter can be passed twice to provide a range.|
Events occurred on January 2, 2016:
Events between 01:00 and 02:00 (UTC):
The following comparative operators are available: greater than (
|Restrict results to events tagged with a specific device attribute.|
|Restrict results to events tagged with a specific operating system property.|
|Restrict results to events with a matching stack property.|
For Native SDK users,
|Restrict results to events with a matching error property.|
Additionally, you can use any tag you’ve specified as a token. Tags are various key/value pairs that get assigned to an event, and you can use them later as a breakdown or quick access to finding related events.
Most SDKs generally support configuring tags by configuring the scope:
Several common uses for tags include:
- The hostname of the server
- The version of your platform (for example, iOS 5.0)
- The user’s language
Premade searches are common search terms that we think you're likely to use. The premade searches will appear in the order of which you've most recently used them.
You can pin a search, and it will become the default view you see on your Issues view. The pinned search is only visible to you and is relevant across your projects.
Type a search into the search bar.
Click the pin icon next to that search.
Once pinned, Sentry will add the search to the Saved Search Dropdown. The search label in the text will read: My Pinned Search.
To change your pinned search, do the following:
Select your pinned search. Un-click the pin icon. Your default search will return to
Do another search. Click the pin icon. The query listed as 'My Pinned Search' will now be the new pinned query, instead of the original one.
You can pin a premade search the same way you pin any other search. When you've selected a premade search, and the premade search query populates the search bar, pin it.
Owners and managers can create a persistent view for their organization by creating custom saved searched. These saved searches will not be associated with a specific project, but with all projects (and users) across the org.
Type a search into the search bar, then click the "Add to Organization saved searches" icon just to the right of it. Keep in mind that you need to be an owner or manager within the org to use this feature.
Name the search in the resulting modal and click '"Save".
The view will then become part of the saved search dropdown.
When an owner or manager hovers over a custom saved search, they should see a trash can icon. The trash can icon functions exactly like you might expect, and removes the custom saved search from the dropdown.