Exporting logs
Written by
Updated at April 17, 2024
Management console
API
- In the management console
, select the folder where your log sink is located. - Select Cloud Logging.
- Select a log group to export logs from.
- Go to the Logs tab.
- To the right of the Run button, click
→ Export logs. - In the window that opens:
- Specify the export period.
- Select a log sink.
- Enter a name for the export file.
- Click Export logs.
The file will be saved to the bucket specified in the settings of the selected log sink.
To export logs, use the run REST API method for the Export resource or the ExportService/Run gRPC API call.