You can call the DescribeDomainCustomLogConfig operation to query the custom log configuration of a CDN domain.


Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Description
Action String  Yes The operation that you want to perform. Set this parameter to DescribeDomainCustomLogConfig.
DomainName String Yes The name of the CDN domain to query the log configuration for. You can specify only one domain name.

Response parameters

Parameter Type Description
ConfigId String The ID of the log configuration.
Tag String  The tag information of the log configuration.
Remark String  The format of the log configuration.
Sample String  The sample log configuration.


Sample request<Common request parameters>

Sample success response

JSON format

    "ConfigId": "25473b84-d598-498e-b148-f23d0a27df52",
    "Tag": "xxxxx",
    "Remark": "$time_iso8601_$request_method_$server_protocol.....",
    "Sample": "[9/Jun/2015:01:58:09+0800]\"-\"\"GET\"2001912830MISS\"Mozilla/5.0 (compatible; AhrefsBot/5.0; +",
    "RequestId": "1805F349-0A2B-41D9-B4AD-33632AFC27F1"

Error codes

Error code Error message HTTP status code Description
Config.NotFound The domain provided doesn't belong to you or doesn't apply any custom log config, please refer to the standard log config. 404 The error message returned because no log configuration has been defined for the specified domain.