Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud Detection and Response
  • Getting started
    • All guides
      • Overview
      • Managing queries
      • Working with templates
      • Working with a database schema and datasets
      • History
  • KQL reference
  • Access management

In this article:

  • Creating a new query
  • Editing a query
  • Selecting a period
  • Running a query
  • Stopping a running query
  • Renaming a query
  • Deleting a query
  • Sharing a query
  • Customizing the fields displayed in the results
  1. Step-by-step guides
  2. Queries
  3. Managing queries

Managing queries

Written by
Yandex Cloud
Updated at April 3, 2026
  • Creating a new query
  • Editing a query
  • Selecting a period
  • Running a query
  • Stopping a running query
  • Renaming a query
  • Deleting a query
  • Sharing a query
  • Customizing the fields displayed in the results

Note

This feature is in the Preview stage. To get access, contact tech support or your account manager.

This section describes how to create, manage, and run KQL (Kusto Query Language) queries.

Creating a new queryCreating a new query

To create a new query:

Security Deck UI
  1. Open an investigation.
  2. Click New query.
  3. In the query editor, enter a KQL query or select a template.

Tip

Use the tooltip in the editor: Enter a query using KQL syntax, or select a template query.

Editing a queryEditing a query

To edit a query:

Security Deck UI
  1. Open an investigation with the required query.
  2. Select the tab with your query.
  3. Make your changes in the query editor.

Changes are saved automatically.

Selecting a periodSelecting a period

To select a period for your query:

Security Deck UI
  1. Click the period selector next to the start button.
  2. Select one of the presets:
    • Last 5 minutes
    • Last 30 minutes
    • Last hour
    • Last 3 hours
    • Last 6 hours
    • Last 12 hours
    • Last day

Or select a custom period:

  1. Click the time period selector.
  2. Select a custom period.
  3. Specify the start date and time of the period.
  4. Specify the end date and time of the period.
  5. Click Apply.

Running a queryRunning a query

To run a query:

Security Deck UI
  1. Make sure your query is entered in the editor.
  2. Select a time period.
  3. Click the query run button.

After you run it, the query enters the Running status. Once it is over, its results are presented in the table and on the histogram.

Stopping a running queryStopping a running query

To stop a running query:

Security Deck UI
  1. While the query is running, click the stop button.
  2. The request will enter the Canceled status.

Renaming a queryRenaming a query

To rename a query:

Security Deck UI
  1. Click the query name in the tab.
  2. Enter a new name.
  3. Press Enter or click outside the input field.

Deleting a queryDeleting a query

To delete a query:

Security Deck UI
  1. Right-click the query tab.
  2. Select Delete.
  3. Confirm the deletion.

Warning

Deleting a query is irreversible. The results and execution history will be deleted.

Sharing a querySharing a query

To share a query:

Security Deck UI
  1. Open the query.
  2. In the actions menu, select Share.
  3. Copy the query link.

This link contains the query text and the selected period. The recipient will be able to open the query in their investigation.

Customizing the fields displayed in the resultsCustomizing the fields displayed in the results

To customize the fields displayed in the results table:

Security Deck UI
  1. Run the query.
  2. In the results table, click the column settings icon.
  3. Select the fields you want displayed.
  4. Reorder the fields by dragging and dropping.
  5. Click Apply.

See alsoSee also

  • Investigations
  • Queries
  • Working with query templates
  • History

Was the article helpful?

Previous
Overview
Next
Working with templates
© 2026 Direct Cursus Technology L.L.C.