Cloud load balancer logs
Load balancer logging uses the Logs service. For more details on the service principle of operation and pricing, see the Logs service overview instruction. You can check the availability of the Logs service for load balancers in regions in the Logs availability matrix.
The following types of events are logged for a load balancer:
- HTTP request;
- TCP connection;
- administrative event — change of server status in a target group.
Depending on the event type, a different set of fields is recorded.
To collect load balancer logs, you need to enable logging for the load balancer. Retrieving logs is only possible via the API. If you no longer need to collect logs, you can disable logging.
Enable logging for a load balancer
You can enable logging via 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 consumes some of the load balancer's computing resources.
Control panel
OpenStack API
- In the control panel, on the top menu, click Products and select Cloud Servers.
- Go to Load Balancers → tab Load Balancers.
- Open the load balancer page.
- In the Settings block, in the Logging field, click .
- Select the Collect technical load balancer logs checkbox.
- Select a log group or create a new one. You can log events from one or several load balancers into the same group.
- If you selected a new group, enter its name.
- Click Save.
Disable logging for a load balancer
Control panel
OpenStack API
- In the control panel, on the top menu, click Products and select Cloud Servers.
- Go to Load Balancers → tab Load Balancers.
- Open the load balancer page.
- In the Settings block, in the Logging field, click .
- Clear the Collect technical load balancer logs checkbox.
- Click Save.
Retrieve logs
Use the Retrieve logs instruction in the Logs section.
See the description of log fields for a load balancer.
Log fields
Depending on the event type, different sets of fields are displayed in the log.
HTTP request
TCP connection
Administrative event