Cloud load balancer logs
The Logs service is used for load balancer logging. For more information about how the service works and its cost, see the Logs service overview instructions. You can check the availability of the Logs service for load balancers across locations in the Logs availability by location instructions.
The following types of events are logged for a load balancer:
- HTTP request;
- TCP connection;
- administrative event — change of the server status in the target group.
Depending on the event type, a different set of fields is recorded for it.
To collect load balancer logs, you need to enable logging for the load balancer. You can retrieve logs only 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, in the top menu, click Products and select Cloud Servers.
- Go to the Load Balancers section → Load Balancers tab.
- Open the load balancer page.
- In the Settings block, in the Logging field, click .
- Select the Collect load balancer technical 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, in the top menu, click Products and select Cloud Servers.
- Go to the Load Balancers section → Load Balancers tab.
- Open the load balancer page.
- In the Settings block, in the Logging field, click .
- Clear the Collect load balancer technical logs checkbox.
- Click Save.
Retrieve logs
Use the Get logs instructions in the Logs section.
See the description of log fields for the load balancer.
Log fields
Depending on the event type, different sets of fields are displayed in the log.
HTTP request
TCP connection
Administrative event