Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 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
    • Alert settings in Monitoring
    • Configuring a response in Cloud Functions
    • Processing Audit Trails events
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Management event reference
  • Data event reference
  • Release notes

In this article:

  • Getting started
  • Search scenarios
  1. Tutorials
  2. Searching for Yandex Cloud events in Object Storage

Searching for Yandex Cloud events in Object Storage

Written by
Yandex Cloud
Updated at March 31, 2025
  • Getting started
  • Search scenarios

Getting startedGetting started

  1. Install and set up s3fs or goofys to mount Object Storage buckets using FUSE.
  2. Mount a bucket with audit logs to your file system using s3fs or goofys.
  3. Install the jq utility to search through data in JSON format.

Search scenariosSearch scenarios

  1. To search through multiple files, use the find command. As a command-line argument, enter the path to the mount directory of the audit log bucket or to its subdirectory with logs for a certain month or day.

    Example command to search events by type:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select( .event_type == "yandex.cloud.audit.iam.CreateServiceAccount")'
    
  2. To find out who deleted a folder from the cloud, search by the eventType (event type) field across all files for the period, filtered by folder ID:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select( .event_type == "yandex.cloud.audit.resourcemanager.DeleteFolder" and .details.folder_id == "<folder_ID>") | .authentication'
    
  3. To find out who created, stopped, restarted, or deleted a VM, search by the eventType field across all files for the period, filtered by VM instance ID:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select((.event_type | test("yandex\\.cloud\\.audit\\.compute\\..*Instance")) and .details.instance_id == "<VM_ID>") | .authentication'
    
  4. To find out what actions a user performed over a period of time, search by the subject ID:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select(.authentication.subject_id == "<user_ID>" and .event_time > "2021-03-01" and .event_time < "2021-04-01")'
    

    You can also search by the subject name:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select(.authentication.subject_name == "<username>" and .event_time > "2021-03-01" and .event_time < "2021-04-01")'
    
  5. To find out which events occurred to objects in a certain folder, search by the folder ID:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select(.resource_metadata != null and .resource_metadata.path != null) | select( .resource_metadata.path[] | .resource_type == "resource-manager.folder" and .resource_id == "<folder_ID>")'
    

    You can also search by the folder name:

    find <folder_path> -type f -exec cat {} \; | jq  '.[] | select(.resource_metadata != null and .resource_metadata.path != null) | select( .resource_metadata.path[] | .resource_type == "resource-manager.folder" and .resource_name == "<folder_name>")'
    

See alsoSee also

  • Audit log
  • Jq documentation
  • s3fs
  • goofys

Was the article helpful?

Previous
All tutorials
Next
Searching for Yandex Cloud events in Cloud Logging
© 2025 Direct Cursus Technology L.L.C.