VK Cloud logo
Updated at March 25, 2024   01:31 PM

Installation of the plugin Fluent BitBeta

To set up logging for a VM:

  1. Set the Fluent Bit if this has not been done before.
  2. Install the vkcloudlogs-fluent-bit-plugin plugin.
  3. Configure the plugin to send logs to the Cloud Logging service.
  4. Enable the log collection agent vkcloudlogs-fluent-bit.service.

The following are the steps for configuring the vkcloudlogs-fluent-bit-plugin plugin.

1. Install the vkcloudlogs-fluent-bit-plugin

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.

2. Configure the vkcloudlogs-fluent-bit.conf configuration file

  1. Find out the authorization parameters for your project:

    • auth_urlendpoint of Keystone;
    • project_idID 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_idservice id in the logging system (by default is default). If necessary, create new IDs on the tab Other resources of the Logging.
  2. Specify the connection parameters for the plugin in the vkcloudlogs-fluent-bit.conf file:

3. Activate vkcloudlogs-fluent-bit.service

  1. Run the command:

    sudo systemctl enable vkcloudlogs-fluent-bit.servicesudo systemctl start vkcloudlogs-fluent-bit.service
  2. Wait a few minutes for the data to accumulate.

  3. Check the availability of ssh logs in the VK Cloud personal account in the section MonitoringLogging.