[Yandex Cloud documentation](../../../index.md) > [Yandex SIEM](../../index.md) > [Step-by-step guides](../index.md) > [Queries](index.md) > History

# History

{% note info %}

This feature is in the [Preview](../../../overview/concepts/launch-stages.md) stage. To get access, contact [tech support](https://center.yandex.cloud/support) or your account manager.

{% endnote %}

This section describes how to use query history.

## Viewing previous runs {#view-history}

To view details of a run:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Open the query history.
  1. Select a run from the list.
  1. View the run details.

{% endlist %}

The query history displays a list of previous runs with the following details:

* Date and time of the query.
* Query text.
* Time period.
* Execution status.
* Number of results.

## Running a historical query {#run-from-history}

To run a historical query:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Open the query history.
  1. Find the run you need.
  1. Click **Launch**.

  The query will use the parameters from the selected run.

{% endlist %}

## Editing a historical query {#edit-from-history}

To edit a historical query:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Open the query history.
  1. Find the run you need.
  1. Click **Edit**.

  This will copy the query text to the editor so you can make changes and run the query with new parameters.

{% endlist %}

## Sharing a historical query {#share-from-history}

To share a historical query:

{% list tabs group=instructions %}

- Cloud Center UI {#cloud-center}

  1. Open the query history.
  1. Find the run you need.
  1. Click **Share**.
  1. Copy the link.

  This link contains the query text and time period from the selected run.

{% endlist %}

#### Useful links {#see-also}

* [Investigations](../../concepts/investigations.md)
* [Queries](../../concepts/queries.md)
* [Managing queries](manage-queries.md)
* [Working with query templates](work-with-templates.md)
* [KQL reference](../../kql-reference.md)