Getting a list of log sinks
Written by
Updated at December 11, 2025
Management console
CLI
API
- In the management console
, go to the folder where you want to view a list of log sinks. - Go to Cloud Logging.
- In the left-hand panel, select
Sinks.
If you do not have the Yandex Cloud CLI installed yet, install and initialize it.
By default, the CLI uses the folder specified when creating the profile. To change the default folder, use the yc config set folder-id <folder_ID> command. You can also set a different folder for any specific command using the --folder-name or --folder-id parameter.
To get a list of log sinks in the folder, run this command:
yc logging sink list
Result:
+----------------------+-----------+----------------------+----------------------+------------------+
| ID | NAME | FOLDER ID | SERVICE ACCOUNT ID | SINK |
+----------------------+-----------+----------------------+----------------------+------------------+
| e23e73lehbfv******** | test-sink | b1gmit33ngp3******** | ajejeis235ma******** | S3: test-bucket/ |
+----------------------+-----------+----------------------+----------------------+------------------+
To get a list of log sinks, use the list REST API method for the Sink resource or the SinkService/List gRPC API call.