VK Cloud logo

Data plane audit plugin

Sending data plane logs to the Cloud Audit service is enabled and configured using the vkcloudaudit-fluent-bit-plugin logging plugin. It works with the Golang plugin interface provided by the Fluent Bit service.

Examples of event sources for the data plane:

  • Kubernetes (Kubernetes auditing);
  • PostgreSQL (pgAudit extension);
  • Operating system (auditd service).

Event collection from some sources, such as Kubernetes, is already integrated into the audit service. You can add any other sources by installing and configuring the plugin yourself.

Plugin authorization parameters

Parameter

Required

Description

Where to find

auth_type

Data plane audit plugin

Authentication type:

  • keystone;
  • disabled.

Default: keystone

auth_url

Data plane audit plugin

Keystone service endpoint

Auth URL parameter in the VK Cloud management console

auth_timeout

Data plane audit plugin

Maximum time the application waits for a response from the authentication service when validating the user's credentials.

Default: 5s

project_id

Data plane audit plugin

ID of the VK Cloud project where logs will be written

Project ID parameter in the VK Cloud management console.

Example: a1b2c3d4e5f6g7h8i9a1b2c3d4e5f6g7

Do not confuse it with a Project Name like mcs1234567890

user_id

Data plane audit plugin

User ID on whose behalf logs will be written

user_name

Data plane audit plugin

Username on whose behalf logs will be written

Username parameter in the VK Cloud management console

password

Data plane audit plugin

Password of the user on whose behalf logs will be written

For user_name, use the password you use to sign in to the VK Cloud management console

key_file

Data plane audit plugin

JSON file that contains the user_id and password values

Allowed ways to specify user credentials:

  • user_id and password;
  • key_file;
  • user_name and password (for example, your username and password for signing in to the VK Cloud management console).

Plugin configuration parameters

Parameter

Required

Description

server_host

Data plane audit plugin

API endpoint for receiving audit data:

  • https://msk.cloud.vk.ru/audit/c2s — for the Moscow region;
  • https://kz.cloud.vk.kz/audit/c2s — for the Kazakhstan region

source_id

Data plane audit plugin

Audit event source ID (for example, databases for the Cloud Databases service). Set by the user

timeout

Data plane audit plugin

Maximum request timeout. Default: 5s

idle_timeout

Data plane audit plugin

Time after which an inactive keepalive connection will be closed. Default: 1s

max_conns

Data plane audit plugin

Maximum number of connections. Default: 512

Was this article helpful?