[Yandex Cloud documentation](../../index.md) > [Yandex Application Load Balancer](../index.md) > [Step-by-step guides](index.md) > L7 load balancers > Getting a log group ID of an L7 load balancer

# Getting a log group ID of an L7 load balancer

To get the ID of the Yandex Cloud Logging [log group](../../logging/concepts/log-group.md) receiving [logs](../concepts/monitoring.md#logging) from the L7 load balancer:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder the load balancer is in.
  1. Navigate to **Application Load Balancer**.
  1. Click your load balancer's name.
  1. Under **Log settings**, click the log group name in the **Cloud Logging log group** field.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  1. See the description of the CLI command to get information about an L7 load balancer:

      ```bash
      yc alb load-balancer get --help
      ```

  1. Run this command with your load balancer name specified:

      ```bash
      yc alb load-balancer get <load_balancer_name>
      ```

      Result:

      ```text
      id: a5d88ep483cm********
      name: test-balancer2
      folder_id: aoe197919j8e********
      status: ACTIVE
      region_id: ru-central1
      network_id: c64l1c06d151********
      allocation_policy:
        locations:
        - zone_id: ru-central1-a
          subnet_id: buc4gsmpj8hv********
      log_group_id: eolul9ap0bv0********
      created_at: "2021-04-26T12:12:13.624832586Z"
      log_options:
        log_group_id: e23ujjda632o********
      ```

      You will see the Cloud Logging log group ID in the `log_group_id` field under `log_options`. Note that the `log_group_id` field following the `subnet_id` field contains a different ID referring to the outdated logging service.

- API {#api}

  Use the [get](../api-ref/LoadBalancer/get.md) REST API method for the [LoadBalancer](../api-ref/LoadBalancer/index.md) resource or the [LoadBalancerService/Get](../api-ref/grpc/LoadBalancer/get.md) gRPC API call.

  You will see the Cloud Logging log group ID in the `logGroupId` field under `logOptions`. Note that the `logGroupId` field outside `logOptions` contains a different ID referring to the outdated logging service.

{% endlist %}

If you kept the **Default log group** value in the **Cloud Logging log group** field when creating an L7 load balancer, do the following to get its ID:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), navigate to the folder with your load balancer.
  1. Navigate to **Cloud Logging**.
  1. Save the `default` log group ID.

- CLI {#cli}

  If you do not have the Yandex Cloud CLI yet, [install and initialize it](../../cli/quickstart.md#install).

  The folder used by default is the one specified when [creating](../../cli/operations/profile/profile-create.md) the CLI profile. To change the default folder, use the `yc config set folder-id <folder_ID>` command. You can also specify a different folder for any command using `--folder-name` or `--folder-id`. If you access a resource by its name, the search will be limited to the default folder. If you access a resource by its ID, the search will be global, i.e., through all folders based on access permissions.

  To get the default log group ID, run this command:

  ```bash
  yc logging group get \
    --name=default \
    --folder-id=<folder_ID>
  ```

  Where:
  * `--name`: Default log group name, i.e., `default`.
  * `--folder-id`: [ID of the folder](../../resource-manager/operations/folder/get-id.md) with your load balancer.

  Result:

  ```text
  id: e23qfbb01na0********
  folder_id: b1gvgqhc5745********
  cloud_id: b1g3clmedscm********
  created_at: "2021-08-07T10:40:55.412Z"
  name: default
  description: Auto-created default group
  ```

{% endlist %}