tencent cloud

Feedback

Offline Logs

Last updated: 2024-06-28 14:21:49

    Feature Overview

    To facilitate customer analysis of user access, EdgeOne packages access logs in hourly granularity. By default, they are stored for 30 days and available for download.

    Offline Log Format

    Logs are stored in JSON Lines format by default, with each line of JSON representing a single log.
    Log packages are compressed using gzip and saved in .gz format. Due to directory system limitations in MacOS, double-clicking to extract may cause an error. If this happens, navigate to the directory containing the logs and use the following Terminal command to extract them.
    gunzip {your_file_name}.log

    Log Packaging Rules

    Default hourly granularity packaging. If there are no requests accessing your business within an hour, no log package will be generated for that time interval.
    Since EdgeOne nodes are distributed globally, to synchronize all timezones, the storage time of offline logs (the time in log package filenames) is set to: UTC +00:00 by default.
    Offline logs are collected from various EdgeOne nodes. Therefore, there are differences in latency, generally around 3 hours. Logs can be queried and downloaded after the delay. The log package will be continuously appended, typically stabilizing around 24 hours.

    Example: Query offline logs for a specific domain within a specified time period

    Sample Scenario

    After you add an acceleration domain name and add www.example.com to the EdgeOne service, you need to download all site acceleration logs for www.example.com from June 23, 2024, to June 25, 2024, for data analysis. You can refer to the following steps.

    Operation step

    1. Log in to EdgeOne console, in the left sidebar, click Site List. Click the Site you are interested in to enter the site details page.
    2. On the Site Details Page, click Log Service > Offline Logs.
    3. On the Offline Logs page, filter the time range to select the date from June 23, 2024, to June 25, 2024. On the right side, choose Site Acceleration Log as the log type and www.example.com as the domain name. The page will automatically query the logs that meet the criteria after filtering.
    
    4. In the list of queried logs, you can download as needed using the following three methods:
    Click the Download column <3>Download</3e to download the log package for the corresponding domain name/four-layer proxy instance for the specified time period.
    Click Get Downlead URLs to copy the download link for the corresponding log package.
    Select the required log packages, then click Batch get download URLs to copy the download links for all necessary log packages in bulk.

    Related APIs

    
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support