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 Studio
    • 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
    • Education and Science
    • Yandex Cloud Partner program
  • Pricing
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
Yandex Cloud Functions
  • Comparison with other Yandex Cloud services
    • All tutorials
    • Creating a skill for Alice
    • Deploying a web application
    • Creating a skill for Alice and a website with authorization
    • Writing data from a device into a database
    • Writing load balancer logs to PostgreSQL
    • Developing a Slack bot
    • Developing a Telegram bot
    • Connecting to a YDB database from a Python function
    • Connecting to a YDB database from a function in Node.js
    • Converting a video to a GIF in Python
    • Creating a Node.js function using TypeScript
    • Developing a custom integration
    • Creating a budget trigger that invokes a function to stop a VM
    • Creating an interactive serverless application using WebSocket
    • Automatically copying objects from one Object Storage bucket to another
    • Running computations on a schedule in DataSphere
    • Interactive debugging of functions
    • Regular asynchronous recognition of audio files from Object Storage
    • Canary release of Cloud Functions
    • Deploying a fault-tolerant architecture with preemptible VMs
    • Creating triggers that invoke a function to stop a VM and send a Telegram notification
    • Loading data from Yandex Direct to a Yandex Managed Service for ClickHouse® data mart using Yandex Cloud Functions, Yandex Object Storage, and Yandex Data Transfer
    • Status monitoring of geographically distributed devices
    • Sensor reading monitoring and event notifications
    • Emulating multiple IoT devices
    • Streaming Yandex Cloud Postbox events to Yandex Data Streams and analyzing them using Yandex DataLens
    • URL shortener
    • Yandex Tracker: data export and visualization
    • Running computations in DataSphere using the API
    • Developing a Telegram bot for text and audio recognition
    • Configuring responses in Yandex Cloud Logging and Cloud Functions
    • Developing functions in Functions Framework and deploying them to Yandex Serverless Containers
    • Configuring CI/CD with SourceCraft
    • Creating an AI agent with Cloud Functions
  • Tools
  • Pricing policy
  • Access management
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Public materials
  • Release notes
  • FAQ

In this article:

  • How it works
  • Implementation example
  • What's next
  1. Tutorials
  2. Configuring responses in Yandex Cloud Logging and Cloud Functions

Configuring responses in Yandex Cloud Logging and Cloud Functions

Written by
Yandex Cloud
Updated at June 4, 2025
  • How it works
  • Implementation example
  • What's next

You can configure Cloud Functions to automatically respond to audit log events, e.g., to send messages through notification channels you prefer or automatically modify Yandex Cloud resource settings.

How it worksHow it works

In general, you will need the following components to configure responses via Cloud Functions:

  1. Trail that uploads audit logs to a log group.
  2. Log group that acts as an interface between the trail and a Cloud Functions trigger.
  3. Yandex Cloud Logging trigger that invokes a function when adding a record to a log group.
  4. Cloud Functions function that implements the response logic.
  5. Optional auxiliary component, such as a Telegram bot or mail server.

Implementation exampleImplementation example

Yc-security-solutions-library contains a solution example that uses Cloud Functions to notify of specific events via a Telegram bot and modify Yandex Cloud resources in line with changes using API methods.

You can get notifications of the following events:

  • Security groups: Allowing incoming traffic to all private addresses (0.0.0.0/0).
  • Object Storage: Enabling public access to buckets.
  • Yandex Lockbox: Assigning permissions to a secret.

The following actions may be performed on Yandex Cloud resources:

  • Security groups: Deleting the rule.
  • Yandex Lockbox: Removing assigned permissions to the secret.

Note

Yandex Cloud Security Solution Library is a public repo on GitHub with a set of examples and recommendations on how to build a secure infrastructure in Yandex Cloud.

This solution contains the source codes of a Python function and a Terraform script that configures all the required Yandex Cloud components.

What's nextWhat's next

  • Learn more about the audit log format.
  • Learn about existing solutions to export audit logs to SIEM.

Was the article helpful?

Previous
Developing a Telegram bot for text and audio recognition
Next
Developing functions in Functions Framework and deploying them to Yandex Serverless Containers
© 2025 Direct Cursus Technology L.L.C.