﻿---
title: Filtering in Kibana
description: This page describes the common ways Kibana offers in most apps for filtering data and refining your initial search queries. Some apps provide more options,...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/query-filter/filtering
products:
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Filtering in Kibana
This page describes the common ways Kibana offers in most apps for filtering data and refining your initial search queries.
Some apps provide more options, such as [Dashboards](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/dashboards).

## Time filter

Display data within a specified time range when your index contains time-based events, and a time-field is configured for the selected [data view](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/find-and-organize/data-views). The default time range is 15 minutes, but you can customize it in [Advanced Settings](https://docs-v3-preview.elastic.dev/elastic/kibana/tree/main/reference/advanced-settings).
<applies-switch>
  <applies-item title="{ stack: preview 9.5+, serverless: preview }" applies-to="Elastic Cloud Serverless: Preview, Elastic Stack: Planned">
    1. Select the time range control.
    2. Set the time range in one of the following ways:
       - Enter a range directly, such as `last 5 minutes` or `-12d to now`, then press **Enter**.
    - Select a range from **Presets** or **Recent**.
    - Select **Calendar**, select the start and end dates, then select **Apply**.
    - Select **Custom range**, configure the **Start date** and **End date** as **Relative**, **Absolute**, or **Now**, then select **Apply**.
    3. To configure automatic refresh, select the `gear` **Settings** icon, then set **Refresh every**.

    <note>
      The new picker doesn't support auto-refresh-only views. In those views, the time control and auto-refresh aren't available.
    </note>
  </applies-item>

  <applies-item title="{ stack: ga 9.0-9.4 }" applies-to="Elastic Stack: Generally available from 9.0 to 9.4">
    1. Select the calendar icon:
       ![Calendar icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/images/kibana-time-filter-icon.png "calendar icon")
    2. Select one of the following:
       - **Quick select**. Set a time based on the last or next number of seconds, minutes, hours, or other time unit.
    - **Commonly used**. Select a time range from options such as **Last 15 minutes**, **Today**, and **Week to date**.
    - **Recently used date ranges**. Use a previously selected date range.
    - **Refresh every**. Specify an automatic refresh rate.
       ![](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/images/kibana-time-filter.png)

    1. To set start and end times, select the bar next to the time filter. In the popup, select **Absolute**, **Relative**, or **Now**, then specify the required options.
       ![](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/images/kibana-time-relative.png)
  </applies-item>
</applies-switch>

The global time filter limits the time range of data displayed. In most cases, the time filter applies to the time field in the data view, but some apps allow you to use a different time field.
Using the time filter, you can configure a refresh rate to periodically resubmit your searches.
To manually resubmit a search, click the **Refresh** button. This is useful when you use Kibana to view the underlying data.

## Additional filters

Structured filters are a more interactive way to create Elasticsearch queries, and are commonly used when building dashboards that are shared by multiple analysts. Each filter can be disabled, inverted, or pinned across all apps. Each of the structured filters is combined with AND logic on the rest of the query.
![Add filter popup](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/7391/explore-analyze/images/kibana-add-filter-popup.png)