Access Log Overview

Last updated: 2020-07-20 14:35:53

    The access logs of CLB collect and record the details of each client request, such as the request time, request path, client IP and port, return code, and response time, which can help you better understand client requests, troubleshoot issues, and analyze user behaviors.

    • The feature of storing access logs in COS will stop accepting new enablement requests after 00:00:00, May 15, 2020 (00:00:00, April 26, 2020 for the Guangzhou region) and will be officially disused after 00:00:00, June 30, 2020. For more information, please see Announcement on the Deactivation of the Feature of Storing CLB Access Logs in COS. Please use the upgraded feature of storing access logs in CLS.
    • Access logs can be configured only for layer-7 CLB but not layer-4 CLB.
    • Currently, access logs can only be configured in certain regions. For more information, please see below.

    Storage Methods

    There are two methods for storing the access logs of CLB:

    • Cloud Log Service (CLS): CLS is a one-stop log service platform that provides a wide variety of log services such as log collection, storage, search, analysis, real-time consumption, and shipping. It assists you in implementing business operations, security monitoring, log auditing, and log analysis.
    • Cloud Object Storage (COS): COS is a distributed storage service designed to store a high number of files. You can easily and quickly access it to upload, download, and manage files in various formats for storage and management of massive amounts of data.
    ItemStoring Access Logs in CLSStoring Access Logs in COS
    Time granularity for getting logs MinuteHour
    Online searchSupportedNot supported. You must download an access log for data search
    Search syntaxFull-text search, key-value search, fuzzy keyword search, etc. For more information, please see Search RulesTypically full-text search
    Supported regionsIt is supported in Guangzhou, Shanghai, Chengdu, Hong Kong (China), Nanjing, Beijing, Chongqing, Singapore, Mumbai, Silicon Valley, Tokyo, and Frankfurt. Guangzhou, Shanghai, Beijing, Hong Kong (China)
    Supported typesPublic network/private network CLBPublic network CLB
    Upstream and downstream links CLS logs can be stored in COS, and consumed using CKafka-
    Log Retention Tencent Cloud stores no access log by default. You need to store the access log in CLS as needed.Tencent Cloud will retain the logs for three days by default in the regions that support storing access logs in COS.

    Relevant Operations

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help