Downloading Log

Last updated: 2021-10-25 15:36:39

    Overview

    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:

    • Up to 10 million logs can be exported.
    • Search conditions and search time range can be specified.
    • JSON and CSV export formats are supported.

    Directions

    1. Log in to the CLS console.

    2. On the left sidebar, click Log Search to go to the Search and Analysis page.

    3. Click the drop-down lists of Logset and Log Topic to select the content to be searched.

    4. Click Log Time and select a log time for search.
      You can select Recent Time or Relative Time or customize the time range.

    5. Click Search and Analysis.

    6. After the log data is returned, click to download logs.

    Note:

    If no log data is returned, you cannot download logs.

    1. In the pop-up window, confirm the time range of the logs to be downloaded and the search statement and download log data according to the following settings:
    • Data format: "CSV format" or "JSON format" can be selected as needed.
    • Log sorting: logs can be sorted in "ascending" or "descending" (default) order by time.
    • Log quantity: "All logs" are exported by default. You can also select a "custom log quantity".
    Note:

    • 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.
    1. Click Export to switch to the Export Logs page.

    2. After the File Name/Task ID status changes to File generated successfully, click Download to export the logs.

      Note:

      • The exported log file is retained for only 3 days.
      • Up to 5 export records can be stored for a single log topic. If this limit is exceeded, you can continue to download logs only after you delete historical export records.