> ## Documentation Index
> Fetch the complete documentation index at: https://gcore.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Logging for load balancers

export const Caution = ({children}) => {
  return <div class="my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border danger-admonition dark:danger-admonition">
      <div class="mt-0.5 w-4">
        <svg width="14" height="14" viewBox="0 0 14 14" fill="rgb(239, 68, 68)" xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 text-sky-500" aria-label="Danger">
          <path fill-rule="evenodd" clip-rule="evenodd" d="M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"></path>
        </svg>
      </div>
      <div class="text-sm prose min-w-0">
        {children}
      </div>
    </div>;
};

Gcore Logging collects and stores logs from various Cloud resources, including Load Balancers. This guide outlines configuring Logging for an existing Load Balancer and highlights the guaranteed throughput between different Load Balancer regions and Logging regions.

To create a new Load Balancer, refer to [our product documentation](/cloud/networking/create-and-configure-a-load-balancer).

## Step 1. Open load balancers settings

In the **Cloud** menu, select **Networking** and then **Load Balancers**. Click the Load Balancer name for which you want to configure Logging.

<Frame>
  <img src="https://mintcdn.com/gcore/YEsPf7l6EvNuxMEL/images/docs/cloud/networking/load-balancers/logging-for-load-balancers/logging-load-balancer-10.png?fit=max&auto=format&n=YEsPf7l6EvNuxMEL&q=85&s=190cfee22e3ecf42a9b8312af201e827" alt="Create Load Balancer" width="1849" height="953" data-path="images/docs/cloud/networking/load-balancers/logging-for-load-balancers/logging-load-balancer-10.png" />
</Frame>

## Step 2. Enable logging

Go to the **Logs** tab and turn on the **Enable Logging** toggle.

<Frame>
  <img src="https://mintcdn.com/gcore/YEsPf7l6EvNuxMEL/images/docs/cloud/networking/load-balancers/logging-for-load-balancers/logging-load-balancer-20.png?fit=max&auto=format&n=YEsPf7l6EvNuxMEL&q=85&s=e3da568b6a4923da3f4ed4caa0f65439" alt="Enable Logging" width="1999" height="1024" data-path="images/docs/cloud/networking/load-balancers/logging-for-load-balancers/logging-load-balancer-20.png" />
</Frame>

## Step 3. Configure logging settings

1\. Create a namespace for your topics.

<Warning>
  **Warning**

  This setting is available **if you have not activated** [Logging](/cloud/logging-as-a-service/about-logging-as-a-service) for your project in the selected destination region.
</Warning>

<Accordion title="What is a namespace">
  Previously, when activating Logging, you could see a non-human-readable string, e.g., `cbc25c71af8d4f7ca6cbbcdc5a4d68fe.your-topic` as a *namespace* that is used as prefixed for topics. To make this process more user-friendly, we created the possibility of making human-readable namespaces, e.g., `namespace123.your-topic`.

  <Caution>
    **Caution**

    You can only create a namespace for a new project where the default value is not set up.
  </Caution>
</Accordion>

To create a namespace, input the namespace name according to the following restrictions:

* Lowercase Latin letters and digits can be used
* Underscore and spaces are prohibited
* Length is between 2–32
* The name should be unique for the destination region. If it's already used, the system will suggest inputting another name.

Click **Create**.

<Frame>
  <img src="https://mintcdn.com/gcore/YEsPf7l6EvNuxMEL/images/docs/cloud/networking/load-balancers/logging-for-load-balancers/logging-namespace.png?fit=max&auto=format&n=YEsPf7l6EvNuxMEL&q=85&s=d518ae2613436e16165b7e7805f6b3ce" alt="Configure logging" width="1999" height="1910" data-path="images/docs/cloud/networking/load-balancers/logging-for-load-balancers/logging-namespace.png" />
</Frame>

2\. Add a topic. Select an existing one from the list or create a new one. For a new topic, specify the name and the retention period.

3\. Click **Save changes**.

Your Load Balancer will start sending logs to the topic.

## Throughput test results

Below are the test results that demonstrate the throughput for various region pairs (measured in K RPS,) where "source" is the region of a Load Balancer and "destination" is the location of the Managed Logging servers.

| **Source**   | **Destination** | **Measured log delivery throughput, K RPS** |
| ------------ | --------------- | ------------------------------------------- |
| Amsterdam    | Luxembourg      | 9.6                                         |
| Amsterdam-2  | Luxembourg      | 14.4                                        |
| Darmstadt    | Luxembourg      | 16.8                                        |
| Frankfurt    | Luxembourg      | 8                                           |
| Tokyo        | Luxembourg      | 1.6                                         |
| Istanbul     | Luxembourg      | 8.8                                         |
| London       | Luxembourg      | 17.6                                        |
| Luxembourg-2 | Luxembourg      | 12                                          |
| Warsaw       | Luxembourg      | 11.2                                        |
| Paris-2      | Luxembourg      | 14.4                                        |
| Dubai        | Luxembourg      | 17.6                                        |
| Almaty       | Luxembourg      | 16                                          |
| Johannesburg | Luxembourg      | 11.2                                        |
| Newport      | Luxembourg      | 16.8                                        |
| Dubai        | Singapore       | 16.8                                        |
| Almaty       | Singapore       | 12.8                                        |
| Tokyo        | Singapore       | 9.6                                         |
| Singapore    | Singapore       | 14.4                                        |
| Johannesburg | Singapore       | 11.2                                        |
| Sydney       | Singapore       | 10.4                                        |
| Mumbai       | Singapore       | 17.6                                        |
| Hong Kong    | Singapore       | 10.4                                        |
| Chicago      | Manassas        | 8                                           |
| Manassas     | Manassas        | 15.2                                        |
| Santa Clara  | Manassas        | 7.2                                         |
| Sao Paulo    | Manassas        | 14.4                                        |
| Sao Paulo-2  | Manassas        | 16.8                                        |
