Skip to main content
Cloud load balancer logs
Last update:

Cloud load balancer logs

For your information

Logging is available for load balancers in pools ru-2, ru-7, and ru-8.:::

The Log Platform service is used for logging the load balancer. For more information about the principle of operation and the cost of the service, see the instruction General information about the Log Platform service.

The following event types are logged for the load balancer:

Depending on the type of event, a different set of fields is recorded for the event.

To collect load balancer logs, you must 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 some of the balancer's computational resources.

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.
  2. Go to BalancersBalancers tab.
  3. Open the balancer page.
  4. In the Settings block, in the Logging field, click .
  5. Check the Collect balancer technical logs checkbox.
  6. Select a log group or create a new group. Logs from one or more balancers can be recorded in one group.
  7. If you have selected a new group, enter its name.
  8. Click Save.

Turn off logging for the load balancer

  1. In the dashboard, on the top menu, click Products and select Cloud Servers.
  2. Go to BalancersBalancers tab.
  3. Open the balancer page.
  4. In the Settings block, in the Logging field, click .
  5. Uncheck the Collect balancer technical logs checkbox.
  6. Click Save.

Get the logs

Use the Get Logs instructions in the Log Platform 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.

loadbalancer_idBalancer ID
elapsedDuration of request processing
urlRequest URL
versionHTTP protocol version
methodHTTP method of request to the balancer
statusHTTP request response status
bytest_inNumber of bytes transferred in the request
bytes_outNumber of bytes transferred in the response to the request
backendBalancer target group ID
clientIP address and port from which the request came
frontendBalancer ID rules
serverServer ID in the balancer's target group
termination_stateSession state at termination, more details in the Session state at disconnection section of the HAProxy documentation
frontend_connectionsNumber of open connections on the balancer rule
backend_connectionsNumber of open connections on the balancer's target group
server_connectionsNumber of open connections on the server where the request was received
retriesNumber of repeated request sends to the server
destinationIP address of the server where the request was received
backend_queueNumber of requests on the balancer target waiting to be executed
server_queueNumber of requests on the server waiting for execution