Updated at March 25, 2024 01:31 PM
Installation of the plugin Fluent BitBeta
To set up logging for a VM:
- Set the Fluent Bit if this has not been done before.
- Install the
vkcloudlogs-fluent-bit-plugin
plugin. - Configure the plugin to send logs to the Cloud Logging service.
- Enable the log collection agent
vkcloudlogs-fluent-bit.service
.
The following are the steps for configuring the vkcloudlogs-fluent-bit-plugin
plugin.
CentOS 7.X, CentOS 8.X, AlmaLinux 9
Ubuntu 22.X, Astra Linux SE 1.7.2 «Орел»
AltLinux Server p10
sudo rpm -i https://cloudlogging.hb.ru-msk.vkcs.cloud/vkcloudlogs-fluent-bit-plugin/vkcloudlogs-fluent-bit-plugin-0.1.3-1.x86_64.rpm
After installation, the service vkcloudlogs-fluent-bit.service
will appear. It is disabled by default.
-
Find out the authorization parameters for your project:
auth_url
— endpoint of Keystone;project_id
— ID VK Cloud project in OpenStack;server_host_port
— address of the Cloud Logging service (cloudlogs.mcs.mail.ru:443
);user_id
— the name of the user on whose behalf the logs will be recorded; generated at the connection stage;password
— the password of the specified user.service_id
— service id in the logging system (by default isdefault
). If necessary, create new IDs on the tab Other resources of the Logging.
-
Specify the connection parameters for the plugin in the
vkcloudlogs-fluent-bit.conf
file:
-
Run the command:
sudo systemctl enable vkcloudlogs-fluent-bit.service
sudo systemctl start vkcloudlogs-fluent-bit.service
-
Wait a few minutes for the data to accumulate.
-
Check the availability of ssh logs in the VK Cloud personal account in the section Monitoring → Logging.