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
    • About Yandex Cloud Detection and Response
    • Investigations
    • Queries
  • KQL reference
  • Access management

In this article:

  • KQL syntax
  • Query history
  • Query optimization
  1. Concepts
  2. Queries

Queries

Written by
Yandex Cloud
Updated at April 3, 2026
  • KQL syntax
  • Query history
  • Query optimization

Note

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

To search for events, Yandex Cloud Detection and Response uses a subset of the Kusto Query Language (KQL). KQL enables you to filter, aggregate, and analyze security events for the past 90 days.

KQL syntaxKQL syntax

A KQL query has the following components:

  • Data source: Event tables, e.g., Events.
  • Filtering operators: where to filer events by conditions.
  • Aggregation operators: summarize for counting and grouping.
  • Sorting operators: sort for result sorting.

For more information about the KQL syntax, see KQL reference.

Request example:

Events
| project event_class, ['time']
| limit 1

This query selects events from the Events table, displays the event_class and time fields, and limits the result to one entry.

Query historyQuery history

YCDR stores execution history for each query. The history contains:

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

From the history, you can:

  • Rerun a query with the same parameters.
  • Copy query text for editing.
  • Share a link to the query with your team.

Query optimizationQuery optimization

To use queries efficiently, follow these best practices:

  • Use filters: Use where clauses to make queries faster.
  • Define a precise time range: Avoid querying data for a broader time window than needed.
  • Aggregate data: Use summarize operators to group and count events instead of retrieving the full output.
  • Limit results: Use the limit operator to limit the number of returned rows.

See alsoSee also

  • Investigations
  • Working with queries
  • How to get started with investigations
  • KQL reference

Was the article helpful?

Previous
Investigations
Next
KQL reference
© 2026 Direct Cursus Technology L.L.C.