Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Yandex Audit Trails
  • Getting started
    • All tutorials
    • Searching for Yandex Cloud events in Object Storage
    • Searching for Yandex Cloud events in Cloud Logging
      • Overview
      • Audit log management tools
      • Sample queries for event search
    • Configuring dashboards and alerts in Monitoring
    • Configuring a response in Cloud Functions
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Management event reference
  • Data event reference
  • Release notes

In this article:

  • Infrastructure and network
  • Yandex Compute Cloud
  • Yandex Virtual Private Cloud
  • Monitoring and resource management
  • Yandex Identity Hub
  • Containers
  • Yandex Managed Service for Kubernetes
  • Yandex Container Registry
  • Data platform
  • Yandex Object Storage
  • Managed databases (MDB)
  • Security
  • Yandex Key Management Service
  • Yandex Identity and Access Management
  • Yandex Lockbox
  • Searching for errors
  • Searching for permission denied errors
  1. Tutorials
  2. Searching for events in audit logs
  3. Sample queries for event search

Examples of queries for searching events in audit logs

Written by
Yandex Cloud
Updated at November 11, 2026
View in Markdown
  • Infrastructure and network
    • Yandex Compute Cloud
    • Yandex Virtual Private Cloud
  • Monitoring and resource management
    • Yandex Identity Hub
  • Containers
    • Yandex Managed Service for Kubernetes
    • Yandex Container Registry
  • Data platform
    • Yandex Object Storage
    • Managed databases (MDB)
  • Security
    • Yandex Key Management Service
    • Yandex Identity and Access Management
    • Yandex Lockbox
  • Searching for errors
    • Searching for permission denied errors

This section contains the most common queries for searching events in audit logs for various Yandex Cloud resources. To get the events you need, run one of the queries below.

Infrastructure and network

  • Yandex Compute Cloud
    • Any actions with a VM
    • Adding an additional interface to a VM
    • Adding access to a VM serial console
    • Creating or modifying a VM configured to get a token via AWS IMDSv1
  • Yandex Virtual Private Cloud
    • Any actions from a particular IP address
    • Adding a public IP address to a VM
    • Creating or modifying a security group

Monitoring and resource management

  • Yandex Identity Hub
    • Deleting a folder
    • Creating a federation
    • Editing a federation
    • Adding a certificate to a federation
    • Detecting a publicly exposed cloud secret

Containers

  • Yandex Managed Service for Kubernetes
    • Creating a cluster with a public IP address for the master
    • Creating a cluster without a security group for the master
    • Creating a cluster without master autoupdate
    • Creating a cluster without etcd encryption
    • Creating a cluster without network policies
    • Creating a group of nodes with public IP addresses
    • Creating a cluster without node group autoupdate
  • Yandex Container Registry
    • Detecting critical vulnerabilities during image scanning

Data platform

  • Yandex Object Storage
    • Updating a bucket policy
    • Enabling public access when creating or updating a bucket
  • Managed databases (MDB)
    • Creating or changing a user for MDB

Security

  • Yandex Key Management Service
    • Updating roles for KMS keys
  • Yandex Identity and Access Management
    • Actions of a given user over a period of time
    • Creating any keys for service accounts
    • Assigning primitive privileged roles for resources
  • Yandex Lockbox
    • Updating roles for secrets
    • Reading a secret

Searching for errors

Searching for permission denied errors

Infrastructure and networkInfrastructure and network

Yandex Compute CloudYandex Compute Cloud

Any actions with a VMAny actions with a VM

Yandex Cloud Logging

Use a filter:

json_payload.details.instance_id="<VM_ID>" and (
json_payload.event_type="yandex.cloud.audit.compute.CreateInstance" or
json_payload.event_type="yandex.cloud.audit.compute.UpdateInstance" or
json_payload.event_type="yandex.cloud.audit.compute.DeleteInstance" or
json_payload.event_type="yandex.cloud.audit.compute.StartInstance" or
json_payload.event_type="yandex.cloud.audit.compute.StopInstance" or
json_payload.event_type="yandex.cloud.audit.compute.RestartInstance")

You can get the ID with the list of VMs in the folder.

Adding an additional interface to a VMAdding an additional interface to a VM

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.compute.AttachInstanceNetworkInterface"

Adding access to a VM serial consoleAdding access to a VM serial console

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.compute.UpdateInstance" or
json_payload.event_type="yandex.cloud.audit.compute.CreateInstance" and
json_payload.details.metadata_serial_port_enable="1"

Creating or modifying a VM configured to get a token via AWS IMDSv1Creating or modifying a VM configured to get a token via AWS IMDSv1

Yandex Cloud Logging

Use a filter:

(json_payload.event_type="yandex.cloud.audit.compute.UpdateInstance" or
json_payload.event_type="yandex.cloud.audit.compute.CreateInstance") and
json_payload.details.metadata_options.aws_v1_http_token="ENABLED"

Yandex Virtual Private CloudYandex Virtual Private Cloud

Any actions from a particular IP addressAny actions from a particular IP address

Yandex Cloud Logging

Use a filter:

json_payload.request_metadata.remote_address = "<IP_address>"

Adding a public IP address to a VMAdding a public IP address to a VM

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.network.AddressAttached"

Creating or modifying a security groupCreating or modifying a security group

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.network.CreateSecurityGroup" or
json_payload.event_type="yandex.cloud.audit.network.UpdateSecurityGroup"

Monitoring and resource managementMonitoring and resource management

Yandex Identity HubYandex Identity Hub

Deleting a folderDeleting a folder

Yandex Cloud Logging

Searching by ID:

json_payload.event_type="yandex.cloud.audit.resourcemanager.DeleteFolder" and json_payload.details.folder_id="<folder_ID>"

Searching by name:

json_payload.event_type="yandex.cloud.audit.resourcemanager.DeleteFolder" and json_payload.details.folder_name="<folder_name>"

You can get the folder name with the list of folders in the cloud.

Creating a federationCreating a federation

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.organizationmanager.saml.CreateFederation"

Editing a federationEditing a federation

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.organizationmanager.saml.UpdateFederation"

Adding a certificate to a federationAdding a certificate to a federation

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.organizationmanager.saml.CreateCertificate"

Detecting a publicly exposed cloud secretDetecting a publicly exposed cloud secret

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.organizationmanager.DetectLeakedCredential"

ContainersContainers

Yandex Managed Service for KubernetesYandex Managed Service for Kubernetes

Creating a cluster with a public IP address for the masterCreating a cluster with a public IP address for the master

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.k8s.CreateCluster" and
json_payload.request_parameters.master_spec.zonal_master_spec.external_v4_address_spec.address exists

Creating a cluster without a security group for the masterCreating a cluster without a security group for the master

Yandex Cloud Logging

Use a filter:

(json_payload.event_type = "yandex.cloud.audit.k8s.CreateCluster" or
json_payload.event_type = "yandex.cloud.audit.k8s.UpdateCluster") and not
json_payload.request_parameters.master_spec.security_group_ids exists

Creating a cluster without master autoupdateCreating a cluster without master autoupdate

Yandex Cloud Logging

Use a filter:

(json_payload.event_type = "yandex.cloud.audit.k8s.CreateCluster" or
json_payload.event_type = "yandex.cloud.audit.k8s.UpdateCluster") and not
json_payload.request_parameters.master_spec.maintenance_policy.auto_upgrade exists

Creating a cluster without encryptionCreating a cluster without etcd encryption

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.k8s.CreateCluster" and not
json_payload.request_parameters.kms_provider.key_id exists

Creating a cluster without network policiesCreating a cluster without network policies

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.k8s.CreateCluster" and not
json_payload.request_parameters.network_policy.provider exists

Creating a group of nodes with public IP addressesCreating a group of nodes with public IP addresses

Yandex Cloud Logging

Use a filter:

(json_payload.event_type = "yandex.cloud.audit.k8s.CreateNodeGroup" or
json_payload.event_type = "yandex.cloud.audit.k8s.CreateNodeGroup") and
json_payload.request_parameters.node_template.v4_address_spec.one_to_one_nat_spec exists

Creating a cluster without node group autoupdateCreating a cluster without node group autoupdate

Yandex Cloud Logging

Use a filter:

(json_payload.event_type = "yandex.cloud.audit.k8s.CreateNodeGroup" or
json_payload.event_type = "yandex.cloud.audit.k8s.UpdateNodeGroup") and not
json_payload.request_parameters.maintenance_policy.auto_upgrade exists

Yandex Container RegistryYandex Container Registry

Detecting critical vulnerabilities during image scanningDetecting critical vulnerabilities during image scanning

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.containerregistry.ScanImage" and
json_payload.details.vulnerability_stats.critical > 0

Data platformData platform

Yandex Object StorageYandex Object Storage

Updating a bucket access policyUpdating a bucket access policy

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.storage.BucketPolicyUpdate"

Enabling public access when creating or updating a bucketEnabling public access when creating or updating a bucket

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.storage.BucketUpdate" and
(json_payload.details.objects_access: "true" or
json_payload.details.settings_read_access: "true" or
json_payload.details.list_access: "true")

Managed databases (MDB)Managed databases (MDB)

Creating or changing a user for MDBCreating or changing a user for MDB

Yandex Cloud Logging

Use a filter:

json_payload.event_type = "yandex.cloud.audit.mdb.postgresql.CreateUser" or
json_payload.event_type = "yandex.cloud.audit.mdb.postgresql.UpdateUser" or
json_payload.event_type = "yandex.cloud.audit.mdb.mysql.UpdateUser" or
json_payload.event_type = "yandex.cloud.audit.mdb.mysql.CreateUser"

SecuritySecurity

Yandex Key Management ServiceYandex Key Management Service

Updating roles for KMS keysUpdating roles for KMS keys

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.kms.UpdateSymmetricKeyAccessBindings" or
json_payload.event_type="yandex.cloud.audit.kms.SetSymmetricKeyAccessBindings" or
json_payload.event_type="yandex.cloud.audit.kms.UpdateAsymmetricEncryptionKeyAccessBindings" or
json_payload.event_type="yandex.cloud.audit.kms.SetAsymmetricEncryptionKeyAccessBindings"

Yandex Identity and Access ManagementYandex Identity and Access Management

Actions of a given user over a period of timeActions of a given user over a period of time

Yandex Cloud Logging

Use a filter:

json_payload.authentication.subject_name="<username>" and
json_payload.event_time>"<period_start_date>" and
json_payload.event_time<"<period_end_date>"

Specify the date in YYYY-MM-DD format.

Creating any keys for service accountsCreating any keys for service accounts

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.iam.CreateAccessKey" or
json_payload.event_type="yandex.cloud.audit.iam.CreateKey" or
json_payload.event_type="yandex.cloud.audit.iam.CreateApiKey"

Assigning primitive privileged roles for resourcesAssigning primitive privileged roles for resources

Yandex Cloud Logging

Use a filter:

json_payload.details.access_binding_deltas.access_binding.role_id="<primitive_role>"

Yandex LockboxYandex Lockbox

Updating roles for secretsUpdating roles for secrets

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.lockbox.UpdateSecretAccessBindings"

Reading a secretReading a secret

Yandex Cloud Logging

Use a filter:

json_payload.event_type="yandex.cloud.audit.lockbox.GetPayload"

Searching for errorsSearching for errors

Searching for errorsSearching for permission denied errors

Searching for permission denied errors:

Yandex Cloud Logging
json_payload.event_status = ERROR and json_payload.error.code = 7

Was the article helpful?

Previous
Audit log management tools
Next
Configuring dashboards and alerts in Monitoring
© 2026 Direct Cursus Technology L.L.C.