kibana/docs/discover/save-search.asciidoc
gchaps 0a62f2c662
[DOCS] How to duplicate a search (#154008)
## Summary

Adds content on how to duplicate a search in [Save a search for
reuse](https://www.elastic.co/guide/en/kibana/current/save-open-search.html).

Closes #149850

---------

Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2023-04-05 13:47:05 -07:00

50 lines
1.9 KiB
Text

[[save-open-search]]
== Save a search for reuse
A saved search is a convenient way to reuse a search
that you've created in *Discover*.
Saved searches are good for adding search results to a dashboard,
and can also serve as a foundation for building visualizations.
[role="xpack"]
[[discover-read-only-access]]
[float]
=== Read-only access
If you don't have sufficient privileges to save searches, the following indicator is
displayed and the *Save* button is not visible. For more information, refer to <<xpack-security-authorization>>.
[role="screenshot"]
image::discover/images/read-only-badge.png[Example of Discover's read only access indicator in Kibana's header]
[float]
=== Save a search
By default, a saved search stores the query text, filters, and
current view of *Discover*, including the columns and sort order in the document table, and the {data-source}.
. Once you've created a search worth saving, click *Save* in the toolbar.
. Enter a name for the search.
. Optionally store <<managing-tags,tags>> and the time range with the search.
. Click *Save*.
. To reload your search results in *Discover*, click *Open* in the toolbar, and select the saved search.
+
If the saved search is associated with a different {data-source} than is currently
selected, opening the saved search changes the selected {data-source}. The query language
used for the saved search is also automatically selected.
[float]
=== Duplicate a search
. In **Discover**, open the search that you want to duplicate.
. In the toolbar, click *Save*.
. Give the search a new name.
. Turn on **Save as new search**.
. Click *Save*.
[float]
=== Add search results to a dashboard
. Open the main menu, and then click *Dashboard*.
. Open or create the dashboard, then click *Edit*.
. Click *Add from library*.
. From the *Types* dropdown, select *Saved search*.
. Select the saved search that you want to visualize, then click *X* to close the list.