Export logs

更新时间:
复制 MD 格式

The log analysis feature of Alibaba Cloud Short Message Service (SMS) lets you download logs or query results locally. You can select a time range and file format for the download.

Procedure

  1. Log on to the Short Message Service console.

  2. In the left-side navigation pane, choose Business Statistics > Log Analysis.

  3. Click the O&M Center tab.

    Click the Raw Log tab to view log details. In the toolbar, click the download icon and choose Download Log or Download Task to export the logs.

  4. On the Raw Logs tab, choose Download logs > Download Log.

  5. In the Download Log dialog box, configure the following parameters and click OK.

    Parameter

    Description

    Task Name

    Download task name.

    Log Quantity

    Number of logs to download.

    Data Format

    CSV or JSON.

    • CSV: Column names come from the first 100 log fields. New fields in subsequent logs are stored in JSON format in an unnamed final column.

    • JSON: Each log entry is a single JSON line.

    Quote

    Encloses fields containing special characters to prevent unintended escaping.

    Download Inaccurate Results

    If you select No, the download fails if the query results are inaccurate.

    Compression Method

    gzip, lz4, zstd, or none.

    Compression significantly reduces file size and download time for large datasets.

  6. In the Download Tasks dialog box, wait for the Status of the task to change to Successful, and then click Download to save the logs to your local machine.

    Alternatively, on the Raw Logs tab, you can choose Download logs > Download Tasks to open the Download Tasks dialog box and view download records.