How to filter issues by environment in Sentry
Learn how to filter the Sentry issue feed by environment using the All Envs selector, so you can see only staging issues and triage them separately.

Quick answer
To filter Sentry issues by environment, open the All Envs selector at the top of the issue feed, choose staging from the Filter Environments list, and wait for the feed to reload. The list then shows only issues with events from that environment, so you can triage staging errors separately from production.
Steps at a glance
- Open the Issues feed.
- Click the All Envs selector at the top.
- Choose staging from the Filter Environments list.
- Wait for the feed to reload.
- Review the issues that remain.
Interactive demo
Summary
The environment selector narrows the Sentry issue feed to events from a single environment, such as staging or production. It keeps pre-release noise out of your production triage and the other way around.
Step-by-step guide
Step 1
Open the environment selector
Go to the Issues feed. Near the top, next to All Projects and 14D, click the All Envs button. A dropdown opens with a Filter Environments search box.
Step 2
Pick staging
The dropdown lists each environment that has sent events, here production and staging. Click staging to select it. The menu closes and the feed starts reloading.
Step 3
Review the staging-only issues
The selector now reads staging, and the feed shows only issues with staging events. The event and user counts update to match, and the pager shows how many issues remain.
Why this matters
You are about to ship a release and want to know which errors are coming from staging, not production. Filtering by environment shows only those issues, so you can fix pre-release problems before real users hit them.
Frequently asked questions
Do event counts change when I filter by environment?
Yes. After selecting staging, the Events and Users columns showed lower numbers, because they count only events from that environment.
How do I get back to all environments?
Open the selector again and clear your selection, so the button reads All Envs.
Related guides
Continue with more step-by-step guides for getting work done.
How to search issues in SentryLearn how to search issues in Sentry with a query like environment:staging, apply it with Enter, and read the filtered issue list in the feed.
How to view an issue in SentryOpen an issue in Sentry, read the error message, check the tag breakdown, inspect the stack trace, and resolve it once the problem is fixed.
How to archive an issue in SentryArchive a Sentry issue you do not need to act on right now, choose when it should come back, and confirm the Archived status on the issue page.
How to filter issues by release in SentryLearn how to filter the Sentry issue feed by release. Search for a release version and see only the issues tied to that version of your app.
How to find your DSN in SentryFind your Sentry DSN in three clicks: open your project, go to Client Keys (DSN) under SDK Setup, and copy the value into your SDK config.
How to merge issues in SentryMerge related issues in Sentry: select two issues in the Issues feed, click Merge, and confirm so their events are grouped into one issue.
Create interactive demos like this one — free, no coding required.
Start for free →