CLS allows you to export the collected log data, so you can download the data to view it locally.
The log download feature is as described below:
Only raw logs can be downloaded. To download statistical analysis results (SQL execution results), click in the upper-right corner.
If no log data is returned, you cannot download logs.
- For the CSV format, only fields with configured indexes can be exported, and the downloaded logs may be empty.
- For the JSON format, all fields can be exported, regardless of index configuration.
- If the number of logs to be downloaded exceeds 50 million, you are advised to narrow the search scope (for example, use more precise search conditions or narrow the search time range) or download only a specified number of logs.
- If you do need to download more than 50 million logs, you can set the log search time range to create multiple download tasks and download logs in batches.
A download task can be in any of the following states: Waiting, File generating, and File generated. A newly created download task waits for a while before entering the File generating state and starts generating data files in the background. If multiple download tasks are created at the same time, the system executes them in sequence based on the creation time. Tasks that are created later are in the Waiting state.
The exported log file is retained for only 3 days.