/
Sentry Search Guide

Sentry Search Guide

Sentry provides a robust search function that requires some guidance to use effectively.  Within a project, access the search function in the search box:


Queries are constructed using a token:value pattern.  For example:

is:resolved user.username:"Jane Doe" server:web-8 example error


Here are some useful search tags you can use: 


UseTagValue restrictions/notes
Restrict results to issues which have any value for a tag.hase.g. "has:user" would restrict to only events that have some value for user
User searchuser.id
user.email
User ID matches user_customuser.id value in Sighten.
Restrict results to issues created since age. The syntax is similar to the unix find command:age

Issues new in the last 24 hours:

age:-24h

Issues older than 12 hours:

age:+12h

Issues created between 12 and 24 hours ago:

age:+12h age:-24h

Supported suffixes:

m -> minutes h -> hours d -> days w -> weeks

Restrict results to issues in which an event occurred at the given timestamp. This filter can be passed twice to provide a range.event.timestamp

Events occurred on January 2nd 2016:

event.timestamp:2016-01-02

Events between 01:00 and 02:00 (UTC):

event.timestamp:>=2016-01-02T01:00:00 event.timestamp:<2016-01-02T02:00:00

The following comparative operators are available:

  • greater than (>)
  • greater than or equal (>=)
  • less than (<)
  • less than or equal (<=)
Search by message ID (for specific event)msg_ide.g.  msg_id:8Z0U492BHE

Additional information provided by Sentry can be found here.