tencent cloud

피드백

Downloading Log

마지막 업데이트 시간:2024-01-20 17:25:15

    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 50 million logs can be downloaded at a time.
    Search conditions and search time range can be specified.
    JSON and CSV export formats are supported.
    Note:
    Only raw logs can be downloaded. To download statistical analysis results (SQL execution results), click
    
    in the upper-right corner.

    Billing description

    Log download incurs public network read traffic fees, which CLS charges based on the size after gzip compression. If your raw log is 100 GB, around 40–70 GB will be billable after compression (due to raw log differences). As the public network read traffic price is 0.141 USD/GB, the fees will be 5.64–9.87 USD.

    Directions

    1. Log in to the CLS console.
    2. On the left sidebar, click Search and Analysis to go to the search and analysis management 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.
    7. 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. > - If the number of logs to be downloaded exceeds 50 million, we recommend you 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.
    8. Click Export to switch to the Export Logs page.
    Note:
    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.
    9. 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.
    
    문의하기

    고객의 업무에 전용 서비스를 제공해드립니다.

    기술 지원

    더 많은 도움이 필요하시면, 티켓을 통해 연락 바랍니다. 티켓 서비스는 연중무휴 24시간 제공됩니다.

    연중무휴 24시간 전화 지원