Skip to content

Commit 8c078f8

Browse files
Bringing controls from discover to dashboard now also works by saving the visualization (#4113)
This PR: - Documents that adding Discover's visualization to a dashboard using the Save visualization option now also brings any existing variable controls (used in the corresponding ES|QL query) along. This is currently live in serverless and will also come with 9.3. Previously, only saving the discover session and then adding it from the library could work. To make this clearer, I split the current section into 2 "methods". Closes: #3992 <!-- Thank you for contributing to the Elastic Docs! 🎉 Use this template to help us efficiently review your contribution. --> ## Summary <!-- Describe what your PR changes or improves. If your PR fixes an issue, link it here. If your PR does not fix an issue, describe the reason you are making the change. --> ## Generative AI disclosure <!-- To help us ensure compliance with the Elastic open source and documentation guidelines, please answer the following: --> 1. Did you use a generative AI (GenAI) tool to assist in creating this contribution? - [ ] Yes - [x] No <!-- 2. If you answered "Yes" to the previous question, please specify the tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.). Tool(s) and model(s) used: -->
1 parent cb04fab commit 8c078f8

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

explore-analyze/_snippets/import-discover-query-controls-into-dashboard.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
To add a Discover query to a dashboard in a way that preserves the [controls created from Discover](/explore-analyze/discover/try-esql.md#add-variable-control) and also adds them to the dashboard, do as follows:
1+
To add the results of your Discover explorations to a dashboard in a way that preserves the [controls created from Discover](/explore-analyze/discover/try-esql.md#add-variable-control) and also adds them to the dashboard, you have two methods:
2+
3+
**Method 1: Adding the Discover session's results**
4+
5+
This method allows you to add the result table of your Discover {{esql}} query to any dashboard.
26

37
1. Save the {{esql}} query containing the variable control into a Discover session. If your Discover session contains several tabs, only the first tab will be imported to the dashboard.
48

@@ -10,8 +14,17 @@ To add a Discover query to a dashboard in a way that preserves the [controls cre
1014

1115
A new panel appears on the dashboard with the results of the query along with any attached controls.
1216

13-
![Importing Discover controls into a dashboard](/explore-analyze/images/import-discover-control-dashboard.png " =40%")
17+
![Importing Discover session with controls into a dashboard](/explore-analyze/images/import-discover-control-dashboard.png " =40%")
18+
19+
**Method 2: Adding the Discover visualization** {applies_to}`serverless:` {applies_to}`stack: ga 9.3`
20+
21+
This method allows you to add the visualization of your Discover {{esql}} query to any dashboard.
22+
23+
1. Next to the Discover visualization, select {icon}`save` **Save visualization**.
24+
25+
![Importing Discover visualization with controls into a dashboard](/explore-analyze/images/save-discover-viz-to-dashboard.png " =70%")
26+
27+
1. Select the dashboard to add the visualization to. You can choose an existing dashboard or create one.
28+
29+
The selected dashboard opens. It now includes a new panel that shows the visualization imported from Discover. Existing controls from the initial query in Discover are also added. You can find them at the top of the dashboard.
1430

15-
:::{note}
16-
When you add a visualization to a dashboard using the {icon}`save` **Save visualization** option, controls are not added to the dashboard.
17-
:::
49.1 KB
Loading

0 commit comments

Comments
 (0)