[Yandex Cloud documentation](../../index.md) > [Yandex Cloud Logging](../index.md) > [Step-by-step guides](index.md) > Getting information about a log group > Getting information about a log group

# Getting information about a log group

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder with the log group.
  1. [Go](../../console/operations/select-service.md#select-service) to **Cloud Logging**.
  1. In the left-hand panel, select ![image](../../_assets/console-icons/tray.svg) **Groups**.
  1. Select the log group.
  1. The **Overview** page will show the log group details.

- 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 find out the ID or name of a log group, [get](list.md) a list of groups in the folder.

  To get information about a log group, run this command:

  ```bash
  yc logging group get <group_name>
  ```

  Result:

  ```text
  id: e23fal6r2l9d********
  folder_id: b1gmit33ngp3********
  cloud_id: b1gia87mbaom********
  created_at: "2023-09-20T18:57:19.903Z"
  name: default
  description: log-group description
  labels:
  compute: instance-logging
  vpc: vpc-log
  status: ACTIVE
  retention_period: 3600s
  data_stream: /ru-central1/b1gia87mbaom********/etnu60k6l8ft********/sample-stream
  ```

- API {#api}

  To get log group details, use the [get](../api-ref/LogGroup/get.md) REST API method for the [LogGroup](../api-ref/LogGroup/index.md) resource or the [LogGroupService/Get](../api-ref/grpc/LogGroup/get.md) gRPC API call.

  To get log group statistics, use the [stats](../api-ref/LogGroup/stats.md) REST API method for the [LogGroup](../api-ref/LogGroup/index.md) resource or the [LogGroupService/Stats](../api-ref/grpc/LogGroup/stats.md) gRPC API call.

  **Request examples**

  The examples below use `grpcurl`. To run them, [authenticate](../api-ref/authentication.md) with the API and clone the [cloudapi](https://github.com/yandex-cloud/cloudapi) repository.

  To get log group details, send the following request:

  ```bash
  grpcurl \
    -rpc-header "Authorization: Bearer $(yc iam create-token)" \
    -d '{"log_group_id": "<log_group_ID>"}' \
    -import-path ~/cloudapi/ \
    -import-path ~/cloudapi/third_party/googleapis/ \
    -proto ~/cloudapi/yandex/cloud/logging/v1/log_group_service.proto \
  logging.api.cloud.yandex.net:443 yandex.cloud.logging.v1.LogGroupService.Get
  ```

  Result:

  ```bash
  {
    "id": "e23u2vn449av********",
    "folderId": "b1g3f9i71bpm********",
    "cloudId": "b1gvlrnlei4l********",
    "createdAt": "2023-11-15T12:48:46.321Z",
    "name": "default",
    "description": "Auto-created default group",
    "status": "ACTIVE",
    "retentionPeriod": "259200s"
  }
  ```

  To get log group statistics, send this request:

  ```bash
  grpcurl \
    -rpc-header "Authorization: Bearer $(yc iam create-token)" \
    -d '{"log_group_id": "<log_group_ID>"}' \
    -import-path ~/cloudapi/ \
    -import-path ~/cloudapi/third_party/googleapis/ \
    -proto ~/cloudapi/yandex/cloud/logging/v1/log_group_service.proto \
  logging.api.cloud.yandex.net:443 yandex.cloud.logging.v1.LogGroupService.Stats
  ```

  Result:

  ```bash
  {
    "logGroupId": "e23u2vn449av********",
    "bytes": "73510",
    "records": "158"
  }
  ```

{% endlist %}