﻿---
title: Filter application data
description: Global filters are ways you can filter your APM data based on a specific time range or environment. When viewing a specific service, the filter persists...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5638/solutions/observability/apm/filter-data
products:
  - APM
  - Elastic Cloud Serverless
  - Elastic Observability
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Filter application data
Global filters are ways you can filter your APM data based on a specific time range or environment. When viewing a specific service, the filter persists as you move between tabs.
![Global filters view](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5638/solutions/images/observability-global-filters.png)

<note>
  If you prefer to use advanced queries on your data to filter on specific pieces of information, see [Query your data](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/5638/solutions/observability/apm/advanced-queries).
</note>


## Global time range

The global time range filter restricts APM data to a specific time period.

## Service environment filter

The environment selector is a global filter for `service.environment`. It allows you to view only relevant data and is especially useful for separating development from production environments. By default, all environments are displayed. If there are no environment options, you’ll see "not defined".
Service environments are defined when configuring your APM agents. It’s vital to be consistent when naming environments in your APM agents. To learn how to configure service environments, see the specific APM agent documentation:
- **Go:** [`ELASTIC_APM_ENVIRONMENT`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-go/tree/main/reference/configuration#config-environment)
- **iOS agent:** *Not yet supported*
- **Java:** [`environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-java/tree/main/reference/config-core#config-environment)
- **.NET:** [`Environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-dotnet/tree/main/reference/config-core#config-environment)
- **Node.js:** [`environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-nodejs/tree/main/reference/configuration#environment)
- **PHP:** [`environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-php/tree/main/reference/configuration-reference#config-environment)
- **Python:** [`environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-python/tree/main/reference/configuration#config-environment)
- **Ruby:** [`environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-ruby/tree/main/reference/configuration#config-environment)
- **Real User Monitoring (Elastic Stack only):** [`environment`](https://docs-v3-preview.elastic.dev/elastic/apm-agent-rum-js/tree/main/reference/configuration#environment)