﻿---
title: Save a Discover session for reuse
description: Save Discover sessions to reuse searches, queries, and configured views. Add saved searches to dashboards or use them as a foundation for building visualizations.
url: https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/discover/save-open-search
products:
  - Kibana
applies_to:
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available
---

# Save a Discover session for reuse
Saved **Discover** sessions preserve your queries, filters, column selections, and view configurations for reuse. Save sessions to return to specific data explorations, share search results with team members, add searches to dashboards, or use them as a foundation for building visualizations. This guide shows how to save, reopen, duplicate, and manage Discover sessions.

## Requirements

To save searches, you need **Create** and **Edit** permissions for the Saved Objects feature in Kibana. If you don't have these permissions, the **Save** button won't be visible. For more information, refer to [Read-only access](#discover-read-only-access).

### Read-only access

If you don’t have sufficient privileges to save Discover sessions, the following indicator is displayed and the **Save** button is not visible. For more information, refer to [Granting access to Kibana](https://docs-v3-preview.elastic.dev/elastic/docs-builder/docs/3250/reference/elasticsearch/roles).
![Example of Discover's read only access indicator in the Kibana header](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/images/kibana-read-only-badge.png)


## Save a Discover session

By default, a Discover session stores the query text, filters, and current view of **Discover**, including the columns and sort order in the document table, and the data view.
1. Once you’ve created a view worth saving, select **Save** in the application menu. A dialog with several options opens:
   1. Enter a **Title** for the session, and optionally a **Description** and [**Tags**](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/find-and-organize/tags).
2. If the session is time-based, turn on **Store time with Discover session** to save the current time filter and refresh interval with it.
3. <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> In **Add to dashboard**, select **Existing** to add the session as a panel on a dashboard you choose, **New** to add it to a brand-new dashboard, or **None** to save the session to the library.
2. Select **Save**.
3. To reload your search results in **Discover**, select **Open** in the application menu, and select the saved Discover session.

If the saved Discover session is associated with a different data view than is currently selected, opening the saved Discover session changes the selected data view. The query language used for the saved Discover session is also automatically selected.

## Duplicate a Discover session

To duplicate an existing Discover session as a new one, the workflow depends on the version you're using.
<applies-switch>
  <applies-item title="{ stack: ga 9.4+, serverless: ga }" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Generally available since 9.4">
    1. In **Discover**, open the Discover session that you want to duplicate.
    2. In the application menu, from the menu next to **Save**, select **Save as**. The **Save Discover session** dialog opens.
    3. Enter a **Title** for the new session, and optionally a **Description** and [**Tags**](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/find-and-organize/tags).
    4. <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> In **Add to dashboard**, select **Existing** to add the session as a panel on a dashboard you choose, **New** to add it to a brand-new dashboard, or **None** to save the session to the library.
    5. Select **Save**.
  </applies-item>

  <applies-item title="{ stack: ga 9.0-9.3 }" applies-to="Elastic Stack: Generally available from 9.0 to 9.3">
    1. In **Discover**, open the Discover session that you want to duplicate.
    2. In the application menu, select **Save**.
    3. Enter a new name for the session.
    4. Turn on **Save as new Discover session**.
    5. Select **Save**.
  </applies-item>
</applies-switch>


## Use Discover sessions in dashboards

You can add different pieces of a Discover session to a dashboard, and manage how they appear:
- [Add Discover visualizations to dashboards](#add-discover-visualization-to-dashboard): save the chart generated by your query as a visualization panel.
- [Add Discover tables to dashboards](#add-discover-tables-to-dashboards): save the table from a Discover session as a panel. Several paths exist, depending on whether you start from Discover or from the dashboard.
- [Manage Discover session panels on a dashboard](#manage-discover-session-panels): edit a session panel from a dashboard, save your edits as a new session, or choose which tab to display.


### Add Discover visualizations to dashboards

When a query in Discover produces a chart, you can save that chart as a visualization panel on a new or existing dashboard, without saving the Discover session itself. The exact flow depends on the [query mode](/elastic/docs-builder/docs/3250/explore-analyze/discover/discover-get-started#search-in-discover) you're using in Discover.
You need permission to view and create dashboards.

#### In ES|QL mode

1. In Discover, run an ES|QL query that produces a chart.
2. Next to the chart, select `app_dashboard` **Save visualization to dashboard** (or `save` **Save visualization** depending on the version you're using).
3. Enter a title for the panel, and optionally a description.
4. In **Add to dashboard**, select **New** to create a dashboard, or **Existing** to choose one from the list.
5. Select **Save and go to dashboard**.

<note applies-to="Elastic Stack: Generally available in 9.2">
  In that version, if your ES|QL query defines [variable controls](/elastic/docs-builder/docs/3250/explore-analyze/discover/try-esql#add-variable-control), they aren't added to the dashboard when using this method. To preserve them, follow [Import a Discover query along with its controls into a dashboard](/elastic/docs-builder/docs/3250/explore-analyze/discover/try-esql#import-discover-query-with-controls) instead.
</note>


#### In classic mode

In classic mode there's no direct save button next to the chart. Instead, you open the chart in **Lens**, edit it as needed, and save from there.
The `app_lens` **Edit visualization** button only appears when the data view you're querying is time-based and its time field can be visualized. If those conditions aren't met, the chart isn't shown and the button isn't available.
1. In Discover, run a query that produces a chart.
2. Next to the chart, select `app_lens` **Edit visualization**. The chart opens in **Lens**, prefilled with your current query and time range.
3. In Lens, adjust the visualization as needed.
4. Select **Save** in the Lens application menu.
5. Enter a **Title** for the panel, and optionally a **Description**.
6. In **Add to dashboard**, select **New** to create a dashboard, or **Existing** to choose one from the list.
7. Select **Save and go to dashboard**.


### Add Discover tables to dashboards

You can add the table from a Discover session to a dashboard in several ways. They differ in where you start and in the lifecycle of the resulting panel: whether the session is saved to the library or only lives on a specific dashboard, and whether the panel displays a single table or lets you switch between the tables of each tab in your Discover session.
You need permission to view and create dashboards.
The flow you choose depends on where you start:
- From Discover:
  - [Save the current table to a dashboard](#save-table-to-dashboard)
- [Save a Discover session to a dashboard or to the library](#save-discover-session-with-add-to-dashboard)
- From a dashboard:
  - [Add a Discover session from the library](#add-discover-session-from-library)
- [Create a Discover session on the dashboard](#add-ad-hoc-discover-session-panel)


#### Save the current table to a dashboard

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4
</applies-to>

From Discover, save the current view of the table to a new or existing dashboard, without saving the Discover session to the library. The resulting panel stores its configuration with the dashboard, so later changes to the Discover session don't affect the panel. If the session has multiple tabs, only the current table is saved.
The button isn't available when Discover is opened from another application, such as when editing a session panel from a dashboard.
1. In the documents table toolbar, select `app_dashboard` **Save table to dashboard**.
2. Enter a title for the panel, and optionally a description.
3. In **Add to dashboard**, select **New** to create a dashboard, or **Existing** to choose one from the list.
4. Select **Save and go to dashboard**.


#### Save a Discover session to a dashboard or to the library

From Discover, save the entire Discover session, including all its tabs, columns, sort order, and other settings.
<applies-switch>
  <applies-item title="{"stack": "ga 9.5", "serverless": "ga"}" applies-to="Elastic Cloud Serverless: Generally available, Elastic Stack: Planned">
    When you save the session, the **Add to dashboard** option of the dialog determines what happens to it:
    - **New** or **Existing**: The session is saved as a panel on a dashboard. The panel's configuration is stored with the dashboard, and the session isn't saved to the library. If the session has multiple tabs, you can [choose which tab the panel displays](#discover-session-choose-tab) on the dashboard.
    - **None**: The session is saved to the library, without being added to a dashboard. From there, you can later [add it as a panel on any dashboard](#add-discover-session-from-library).
    Follow the steps under [Save a Discover session](#_save_a_discover_session), and select the **Add to dashboard** option that matches what you want.
  </applies-item>

  <applies-item title="{"stack": "ga 9.0-9.4"}" applies-to="Elastic Stack: Generally available from 9.0 to 9.4">
    Saving from Discover saves the session to the library only. To put it on a dashboard, follow the steps under [Save a Discover session](#_save_a_discover_session), then [add the session from the dashboard library](#add-discover-session-from-library).
  </applies-item>
</applies-switch>


#### Add a Discover session from the library

From a dashboard, add a Discover session that's already saved to the library. The same session can be added to multiple dashboards, and each panel stays linked to the library, so updates to the session are reflected on all dashboards. You can break that link by unlinking a panel from the library after adding it from the panel's contextual menu.
This option requires that the session has already been [saved to the library](#_save_a_discover_session).
1. Go to **Dashboards**.
2. Open or create the dashboard, then switch to **Edit** mode if necessary.
3. Depending on the version you're using, select **Add from library**, or **Add** > **From library**.
4. From the **Types** dropdown, select **Discover session**.
5. Select the Discover session that you want to add, then select **X** to close the list.

If the session has multiple tabs, you can [choose which tab the panel displays](#discover-session-choose-tab) on the dashboard.

#### Create a Discover session on the dashboard

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4
</applies-to>

Use this option to create a single-tab Discover session directly on the dashboard, without first saving it to the library. The session is stored only with the dashboard.
You need permission to access Discover, and the dashboard must be in **Edit** mode.
1. On the dashboard, select **Add panel** > **New panel**.
2. In the **Visualizations** group, select `app_discover` **Discover session**. Discover opens in embedded editor mode.
3. Configure the session: enter a query, adjust columns, sort, and other view settings as needed.
4. Select **Save and return** in the application menu to add the configured panel to the dashboard.


### Manage Discover session panels on a dashboard


#### Save panel edits as a new Discover session

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4
</applies-to>

When editing a Discover session panel from a dashboard, you can save your changes as a new Discover session, instead of updating the panel in place. This works whether the panel was added from the library or created directly on the dashboard.
1. On the dashboard, hover over the panel and select `pencil` **Edit Discover session configuration**. Discover opens in embedded editor mode.
2. Make your changes in **Discover**.
3. In the application menu, from the menu next to **Save and return**, select **Save as**.
4. In the **Save Discover session** dialog, enter a **Title** for the new session, and optionally a **Description** and [**Tags**](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/find-and-organize/tags).
5. <applies-to>Elastic Stack: Planned</applies-to> <applies-to>Elastic Cloud Serverless: Generally available</applies-to> In **Add to dashboard**, choose where to save the new session:
   - **Existing**: Save the session as an additional panel on a dashboard that already exists.
- **New**: Save the session as a panel on a new dashboard.
- **None**: Save the session to the library.
6. Select **Save**.


#### Choose which tab a session panel displays

<applies-to>
  - Elastic Cloud Serverless: Generally available
  - Elastic Stack: Generally available since 9.4
</applies-to>

A Discover session panel displays one tab at a time. When the underlying session has multiple tabs, you can change which tab the panel shows.
1. On the dashboard, open the panel menu and select **Edit**.
2. From the tab selector, select the tab you want to display.
   ![Tab selector showing the list of available tabs for a Discover session panel](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/images/discover-session-tab-selector.png)
3. Select **Apply**.


## Related pages

- [Explore fields and data with Discover](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/discover/discover-get-started)
- [Create a dashboard](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/dashboards/create-dashboard)
- [Using ES|QL](https://www.elastic.co/elastic/docs-builder/docs/3250/explore-analyze/discover/try-esql)