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
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Tutorials
    • All tutorials
    • URL shortener
    • Entering data into storage systems
    • Storing application runtime logs
    • Deploying a web application using the Java Servlet API
    • Developing a Slack bot
    • Developing a Telegram bot
    • Developing a custom integration in API Gateway
    • Developing CRUD APIs for movie services
    • Building a CI/CD pipeline in GitLab
    • Working with an API gateway via WebSocket
    • Creating an interactive serverless application using WebSocket
    • Automatically copying objects from one Object Storage bucket to another
    • Visualizing logs in Grafana using the Cloud Logging plugin
    • Canary release of a Cloud Functions function
    • Interactive debugging of Cloud Functions functions
    • Creating a Node.js function using TypeScript
    • Running a containerized app in Serverless Containers
    • Streaming Yandex Cloud Postbox events to Data Streams and analyzing them using DataLens
    • Using API Gateway to set up speech synthesis in SpeechKit
    • Connecting to YDB from a Cloud Functions function in Python
    • Connecting to a YDB database from a Cloud Functions function in Node.js
    • API Gateway protection with Smart Web Security
    • Deploying a web app with JWT authorization in API Gateway and authentication in Firebase
    • Automatic data upload to Yandex SpeechSense using Yandex Workflows
    • Configuring responses in Cloud Logging and Yandex Cloud Functions
    • Setting up Workflows integration with Tracker, YandexGPT, and Yandex Cloud Postbox
    • Developing functions in Functions Framework and deploying them to Yandex Serverless Containers

In this article:

  • Scheme of operation
  • Example implementation
  • What's next
  1. Serverless technologies
  2. Configuring responses in Cloud Logging and Yandex Cloud Functions

Configuring responses in Yandex Cloud Logging and Yandex Cloud Functions

Written by
Yandex Cloud
Updated at March 27, 2025
  • Scheme of operation
  • Example implementation
  • What's next

You can configure Cloud Functions to automatically respond to audit log events. For example, to send messages through convenient notification channels or automatically modify Yandex Cloud resource settings to compensate for changes.

Scheme of operationScheme of operation

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

  1. A trail uploads audit logs to a log group.
  2. A log group acts as an interface between a trail and a Cloud Functions trigger.
  3. A Yandex Cloud Logging trigger calls the function when adding an entry to a log group.
  4. A Cloud Functions function to execute the response logic.
  5. An optional auxiliary component, such as a Telegram bot or mail server.

Example implementationExample implementation

Yc-security-solutions-library contains an example solution that uses Cloud Functions to provide notification of specified events via a Telegram bot and perform compensating actions on Yandex Cloud resources via API methods.

Notifications are implemented for 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 access to a secret.

Compensating actions on Yandex Cloud resources:

  • Security groups: Delete the rule.
  • Yandex Lockbox: Disable assigned access 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.

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

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
Automatic data upload to Yandex SpeechSense using Yandex Workflows
Next
Setting up Workflows integration with Tracker, YandexGPT, and Yandex Cloud Postbox
Yandex project
© 2025 Yandex.Cloud LLC