Skip to main content
Cloud load balancer logs
Last update:

Cloud load balancer logs

For your information

Logging is only available for load balancers in the pool ru-8.

The service is used for logging the load balancer Logging Platform. More details on the principle of operation and the cost of the service in the instructions General information about the Log Platform service.

The following types of events are logged for the load balancer:

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

To collect load balancer logs, you need to enable logging for the balancer. Get the logs can only be done through the API. If you no longer need to collect logs, you can deactivate 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 the existing balancer.

Enable logging for an existing load balancer

Logging uses some of the balancer's computational resources.

  1. in control panels from the top menu, press Products and select Cloud servers.
  2. Go to the section Balancers → tab Balancers.
  3. Open the balancer page.
  4. In the block Settings in the field Logging click .
  5. Check the box Collect technical logs of the balancer.
  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.

Disable logging for the load balancer

  1. in control panels from the top menu, press Products and select Cloud servers.
  2. Go to the section Balancers → tab Balancers.
  3. Open the balancer page.
  4. In the block Settings in the field Logging click .
  5. Uncheck the box Collect technical logs of the balancer.
  6. Click Save.

Get the logs

Use the instructions Get the logs In the Log Platform section.

Look at the description 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 section Session state at disconnection 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