Cloud load balancer logs
The Logi service is used for load balancer logging. For more information about the principle of operation and cost of the service, see the General information about the Logi service. To see the availability of the Logi service for load balancers in the regions, see the Logi availability matrix.
The following event types are logged for the load balancer:
- HTTP request;
- TCP connection;
- administrative event - change of server status in the target group.
Depending on the type of event, a different set of fields is recorded for the event.
To collect load balancer logs, you need to enable logging for the load balancer. You can only get logs through the API. If you no longer need to collect logs, you can disable logging.
Enable logging for the load balancer
You can enable logging through the API or in the control panel - when creating a load balancer or for an existing load balancer.
Enable logging for an existing load balancer
Logging uses a portion of the balancer's computational resources.
Control panel
OpenStack API
- In the Dashboard, on the top menu, click Products and select Cloud Servers.
- Go to Balancers → Balancers tab.
- Open the balancer page.
- In the Settings block, in the Logging field, click .
- Check the Collect balancer technical logs checkbox.
- Select a log group or create a new group. Logs from one or more balancers can be recorded in one group.
- If you have selected a new group, enter its name.
- Click Save.
Turn off logging for the load balancer
Control panel
OpenStack API
- In the dashboard, on the top menu, click Products and select Cloud Servers.
- Go to Balancers → Balancers tab.
- Open the balancer page.
- In the Settings block, in the Logging field, click .
- Uncheck the Collect balancer technical logs checkbox.
- Click Save.
Get the logs
Use the Get Logs instructions in the Logs section.
Look at the description of the log fields for the load balancer.
Log fields
Depending on the type of event, the log displays a different set of fields.
HTTP request
TCP connection
Administrative event