Managing the logging agentBeta
- Connect to the virtual machine.
- Make sure that you have the
vkcloudlogs-fluent-bit-pluginplugin installed.
-
To turn the agent on, run the commands:
Linuxsudo systemctl enable vkcloudlogs-fluent-bit.servicesudo systemctl start vkcloudlogs-fluent-bit.service -
To turn the agent off, run the commands:
Linuxsudo systemctl stop vkcloudlogs-fluent-bit.servicesudo systemctl disable vkcloudlogs-fluent-bit.service
-
Connect to the virtual machine.
-
Make sure that you have the
vkcloudlogs-fluent-bit-pluginplugin installed. -
Adjust the
vkcloudlogs-fluent-bit.conffile as needed:- in the
[INPUT]section, specify the path to the source file in thePathparameter and the tag in theTagparameter; - in the
[OUTPUT]section, specify the same tag so that the records are sent to the logs.
- in the
-
Restart the agent:
Linuxsudo systemctl restart vkcloudlogs-fluent-bit.service