Exporting logs to Object Storage
Written by
Updated at December 11, 2025
Note
To start log export, the user or service account must have the logging.editor role or higher.
Management console
API
- In the management console
, go to the folder containing your log group and log sink. - Go to Cloud Logging.
- Select the log group from which you want to export logs.
- Navigate to the Logs tab.
- To the right of the Run button, click
→ Export logs. - In the window that opens, do the following:
- Specify the export period.
- Select the 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 log sink you selected.
To export logs, use the run REST API method for the Export resource or the ExportService/Run gRPC API call.