Prerequisites
- Make sure that you are in a group that has at least the
editorrole within your tenant; for example, the defaulteditorsgroup. You can check this in the Administration → IAM section of the web console. - Make sure that you have sufficient logging quotas.
How to export logs
- In the web console, go to
Observability → Logs.
- Use the period, resource or log level filters to find the logs to export. You can also use the LogQL query language to filter logs.
- Click
Export logs.
- In the window that opens:
- Select a time range.
- Select an existing bucket or create a new one to store the logs. To create a new one, see Bucket parameters.
- Select a format:
- .json.gzip: JSON compressed with Gzip.
- .parquet: Apache Parquet.
- Click Export.
If the Object Storage quota is exceeded, the export fails with a timeout after 90 minutes.
How to view log exports
To see a list of all your log exports:-
In the web console, go to
Observability → Logs → Exports. This tab shows the following information for each export:
- Operation ID: The unique identifier for the export operation. Use this ID to distinguish between exports stored in the same bucket.
- Status:
In progress,FinishedorCanceled.
-
Click
→ View bucket next to an export. The exported logs are stored in the selected bucket with the following path structure:
Large exports may be split into segments and stored as separate files. The files are numbered sequentially starting from0. In some cases, segments may be split further into parts, indicated by a dash (-) and the part number after the segment number.Example path
How to cancel an export
You can cancel an export while its status isIn progress. If an export has the status Finished, you can delete the exported logs instead.
To cancel an export:
- On the Logs page, switch to the Exports tab.
- Next to the export that you want to cancel, click Cancel.
- In the window that opens, confirm the cancellation.
How to download exported logs
- In the web console, go to
Observability → Logs → Exports.
- Click
→ View bucket next to the export.
- In the bucket, open the folder where the logs are stored.
- Navigate to the file that contains the exported logs.
- Click
→
Download.
How to delete exported logs
- In the web console, go to
Observability → Logs → Exports.
- Click
→ View bucket next to the export.
- In the bucket, open the folder where the logs are stored.
- Navigate to the file that contains the exported logs.
- Click
→ Delete.