Installing and configuring the FluentBit plugin for the data plane
-
Install Fluent Bit software on the VM if you have not done so already.
-
Install the
vkcloudaudit-fluent-bit-pluginplugin to collect data plane audit events.CentOS 7.X, CentOS 8.X, AlmaLinux 9Ubuntu 22.X, Astra Linux SE 1.7.2 «Орел»AltLinux Server p10sudo rpm -i https://cloudaudit.hb.bizmrg.com/vkcloudaudit-fluent-bit-plugin/vkcloudaudit-fluent-bit-plugin-0.2.1-1.x86_64.rpmAfter installation, the
vkcloudaudit-fluent-bit.servicelog collection agent will appear in the VM services. By default, it is disabled.
-
Go to the
/etc/vkcloudaudit-fluent-bit-plugindirectory, where the YAML files containing the plugin settings must be located. Examples:/etc/vkcloudaudit-fluent-bit-plugin/fluent-bit.yaml— the main plugin configuration file. For details, see Data plane audit plugin./etc/vkcloudaudit-fluent-bit-plugin/input-kubernetes.yaml— the file that describes the data plane event source.
-
Configure the plugin to send logs to the Cloud Audit service.
-
Find out the plugin authorization parameters for your project.
-
Edit the
fluent-bit.yamlfile and specify the agent connection parameters: -
Add a file with source parameters to the directory. For example,
input-kubernetes.yamlfor Kubernetes: -
To configure conversion of the data collected by the plugin into the audit event format, add a Lua script file to the
/etc/vkcloudaudit-fluent-bit-plugin/filtersdirectory. For example,kubernetes.lua.
-
-
Enable the
vkcloudaudit-fluent-bit.serviceevent collection agent by running the command:sudo systemctl enable vkcloudaudit-fluent-bit.servicesudo systemctl start vkcloudaudit-fluent-bit.serviceIf the configuration was performed on a running agent, restart it:
sudo systemctl restart vkcloudaudit-fluent-bit.service -
Wait some time for data to accumulate.
-
Go to the VK Cloud management console and check for events in Monitoring → Event log on the Data plane tab.