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

# Getting a list of log groups

{% list tabs group=instructions %}

- Management console {#console}

    1. In the [management console](https://console.yandex.cloud), go to the folder where you want to view a list of log groups.
    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**.

- 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 a list of log groups in the folder, run this command:

    ```bash
    yc logging group list
    ```

    Result:

    ```text
    +----------------------+---------+----------------------+--------+
    |          ID          |  NAME   |      FOLDER ID       | STATUS |
    +----------------------+---------+----------------------+--------+
    | af36gk8qv2********** | default | aoek6qrs8t********** | ACTIVE |
    +----------------------+---------+----------------------+--------+
    ```

- API {#api}

  To get a list of log groups, use the [list](../api-ref/LogGroup/list.md) REST API method for the [LogGroup](../api-ref/LogGroup/index.md) resource or the [LogGroupService/List](../api-ref/grpc/LogGroup/list.md) gRPC API call.

  **Request example**

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

  Run this query:

  ```bash
  grpcurl \
    -rpc-header "Authorization: Bearer $(yc iam create-token)" \
    -d '{"folder_id": "<folder_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.List
  ```

  Result:

  ```bash
  {
    "groups": [
      {
        "id": "e23u2vn449av********",
        "folderId": "b1g3f9i71bpm********",
        "cloudId": "b1gvlrnlei4l********",
        "createdAt": "2023-02-09T07:49:15.857Z",
        "name": "default",
        "description": "Auto-created default group",
        "status": "ACTIVE",
        "retentionPeriod": "259200s"
      }
    ]
  }
  ```

{% endlist %}