Exporting logs to Object Storage
Written by
Updated at October 17, 2024
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. - 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.