Skip to main content

How do I search for issues in a time range?

Issue

I need to find issues or events in Sentry within a specific time frame using Issues search, including relative windows (age) and absolute datetimes (event.timestamp).

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Issues

  • Search

Resolution

Use Issues search with age for relative time, or event.timestamp for absolute datetimes. Issues search returns issues that have at least one event matching your query.

You can also narrow results with the date range control in the page filters at the top of the page. Use the search tokens below when you need a precise query.

If you want a relative window, use age. Time is relative to now. Supported suffixes are m (minutes), h (hours), d (days), and w (weeks).

  • age:-24h returns issues created in the last 24 hours.

  • age:+12h returns issues older than 12 hours.

  • age:+12h age:-24h returns issues created between 12 and 24 hours ago.

If you want an absolute datetime, use event.timestamp with >, <, >=, or <=. Use an ISO 8601 datetime. You can use UTC (Z) or an offset.

  • event.timestamp:>2024-01-02T00:00:00Z returns issues with an event after that time.

  • event.timestamp:<2024-01-02T01:00:00Z returns issues with an event before that time.

  • event.timestamp:>2024-01-01T00:00:00Z event.timestamp:<2024-01-02T00:00:00Z returns issues with an event in that range.

Combine age and event.timestamp with other search tokens in the same query.

For more syntax and property lists, see the search documentation and issue search properties.

If you need a list of individual events (not issues), use Discover or Explore with the page date range and timestamp filters for that dataset.

Did this answer your question?