You can call the CreateRealtimeLogDelivery operation to enable real-time log delivery for specific CDN domains.

Request parameters

Parameter Type Required Description
Action String Yes The operation that you want to perform. Set this parameter to CreateRealtimeLogDelivery.
Project String Yes The name of the project.
Logstore String Yes The name of the Logstore.
Region String Yes The region ID, such as cn-shanghai.
Domain String Yes The name of the CDN domain to enable real-time log delivery for. You can specify multiple domain names and separate them with commas (,).

Response parameters

Parameter Type Description
RequestId String The ID of the request.

Examples

Sample request

https://cdn.aliyuncs.com? Action=CreateRealtimeLogDelivery?Domain=xxx.com&Project=test&Logstore=test&Region=test

Sample success response

JSON format

{
    "RequestId": "F32C57AA-7BF8-49AE-A2CC-9F42390F5A19",
}

Error codes

Error code Error message HTTP status code Description
Unauthorized RealtimeLogDelivery Service Not Authorized 403 The error message returned because your CDN is not authorized to access Log Service.
LogstoreNotExist Logstore does not exist 404 The error message returned because the specified Logstore was not found.