Yandex Cloud
Search
Contact UsGet started
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • AI for business
    • Business tools
  • 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
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Security in Yandex Cloud
  • Key security principles
  • Division of responsibility for security
  • Compliance
  • Security measures on the Yandex Cloud side
  • Security tools available to cloud service users
    • All tutorials
      • Searching for Yandex Cloud events in Query
      • Searching for Yandex Cloud events in Object Storage
      • Searching for Yandex Cloud events in Cloud Logging
      • Configuring alerts and dashboards in Monitoring
      • Configuring responses in Cloud Logging and Cloud Functions
      • Processing Audit Trails events
      • Uploading audit logs to MaxPatrol SIEM
      • Uploading audit logs to Splunk SIEM
      • Uploading audit logs to ArcSight SIEM
      • Transferring logs from a VM to Cloud Logging
      • Writing load balancer logs to PostgreSQL
      • Transferring logs from Container Optimized Image to Cloud Logging
  • User support policy during vulnerability scanning
  • Security bulletins
  • Public IP address ranges

In this article:

  • Getting started
  • Configure Audit Trails
  • Set up integration between Audit Trails and Query
  • Analytical queries to Object Storage data
  • Streaming queries to Data Streams data
  • See also
  1. Tutorials
  2. Collecting, monitoring, and analyzing audit logs
  3. Processing Audit Trails events

Processing Yandex Audit Trails events

Written by
Yandex Cloud
Updated at August 15, 2025
  • Getting started
  • Configure Audit Trails
  • Set up integration between Audit Trails and Query
  • Analytical queries to Object Storage data
  • Streaming queries to Data Streams data
  • See also

Yandex Audit Trails is a service for collecting and exporting audit logs of Yandex Cloud resources to various target systems, including Yandex Object Storage and Yandex Data Streams. Audit Trails and Yandex Query work together to enable searching through audit logs.

image

Using Query to process audit logs allows you to get the following information:

  • Who deleted a cloud folder.
  • Who enabled access to a Yandex Compute Cloud VM serial console.
  • Who edited access permissions for an Object Storage bucket.
  • Who was granted admin privileges.

You can find the preset queries for these use cases in this GitHub repository. You can also write custom YQL queries.

In this use case, you will create trails that will upload audit logs of all folder resources to the Object Storage bucket and send them to the stream in Data Streams. Next, you will run analytical and streaming queries to the log data using Query.

Getting startedGetting started

Sign up for Yandex Cloud and create a billing account:

  1. Navigate to the management console and log in to Yandex Cloud or create a new account.
  2. On the Yandex Cloud Billing page, make sure you have a billing account linked and it has the ACTIVE or TRIAL_ACTIVE status. If you do not have a billing account, create one and link a cloud to it.

If you have an active billing account, you can navigate to the cloud page to create or select a folder for your infrastructure.

Learn more about clouds and folders here.

Configure Audit TrailsConfigure Audit Trails

Create two trails:

  • To upload folder audit logs to the Object Storage bucket.
  • To send folder audit logs to the stream in Data Streams.

Set up integration between Audit Trails and QuerySet up integration between Audit Trails and Query

To set up integration:

  1. Open the list of trails in the Yandex Cloud console.
  2. Select the trail you previously created for uploading cloud audit logs to the bucket and click Process in YQ.
  3. When switching from Audit Trails to Query for the first time, set up integration:
    1. In the Query interface, select the service account you want to use to read data from Object Storage in the connection creation dialog and click Create.
    2. In the Query interface, check the preset parameters by clicking Preview in the binding creation dialog. Next, click Create to complete the integration.

This will automatically redirect you to the Audit trails panel of the Query interface.

Perform similar actions for the previously created trail for sending data to the stream in Data Streams.

Analytical queries to Object Storage dataAnalytical queries to Object Storage data

To query Audit Trails analytical data stored in Object Storage:

  1. Under Audit trails in the Query interface, select Analytical as the data analysis type. In the list of data bindings, select audit-trails-test-object_storage.
  2. Select the query to Object Storage data from the list and click Run.

You can do the following with analytical query results:

  • Download them through the Query user interface by clicking Export.
  • Save them to an Object Storage bucket.
  • Get and process them via the Query HTTP API.

Streaming queries to Data Streams dataStreaming queries to Data Streams data

To query Audit Trails streaming data transferred through Data Streams:

  1. Under Audit trails in the Yandex Query interface, select Streaming as the data analysis type. In the list of data bindings, select the one you need.
  2. Select the query to Object Storage data from the list and click Run.

You can do the following with streaming query results:

  • Send them to Yandex Monitoring as metrics.
  • Send them to an output stream in Data Streams as data and then process the data using Yandex Cloud Functions triggers.

See alsoSee also

  • Yandex Object Storage
  • Yandex Data Streams
  • Yandex DataLens

Was the article helpful?

Previous
Configuring responses in Cloud Logging and Cloud Functions
Next
Uploading audit logs to MaxPatrol SIEM
© 2025 Direct Cursus Technology L.L.C.