诊断日志架构Diagnostic logs schemas

备注

Google Widevine 内容保护服务目前在 Azure 中国区域不可用。Google Widevine content protection services are currently unavailable in the Azure China regions.

可以通过 Azure Monitor 监视指标和诊断日志,以便了解应用程序的执行情况。Azure Monitor enables you to monitor metrics and diagnostic logs that help you understand how your applications are performing. 可以监视媒体服务诊断日志,并针对收集的指标和日志创建警报与通知。You can monitor Media Services diagnostic logs and create alerts and notifications for the collected metrics and logs. 可将日志发送到 Azure 存储、将其流式传输到 Azure 事件中心、将其导出到 Log Analytics,或使用第三方服务。You can send logs to Azure Storage, stream them to Azure Event Hubs, and export them to Log Analytics, or use 3rd party services.

有关详细信息,请参阅 Azure Monitor 指标Azure Monitor 诊断日志For detailed information, see Azure Monitor Metrics and Azure Monitor Diagnostic logs.

本文介绍媒体服务诊断日志架构。This article describes Media Services diagnostic logs schemas.

顶级诊断日志架构Top-level diagnostic logs schema

有关顶级诊断日志架构的详细说明,请参阅 Azure 诊断日志支持的服务、架构和类别For detailed description of the top-level diagnostic logs schema, see Supported services, schemas, and categories for Azure Diagnostic Logs.

密钥传送日志架构Key delivery log schema

属性Properties

这些属性特定于密钥传送日志架构。These properties are specific to the key delivery log schema.

名称Name 说明Description
keyIdkeyId 请求的密钥的 ID。The ID of the requested key.
keyTypekeyType 可能是以下值之一:“Clear”(不加密)、“FairPlay”或“PlayReady”。Could be one of the following values: "Clear" (no encryption), "FairPlay", or "PlayReady".
policyNamepolicyName 策略的 Azure 资源管理器名称。The Azure Resource Manager name of the policy.
tokenTypetokenType 令牌类型。The token type.
statusMessagestatusMessage 状态消息。The status message.

示例Examples

密钥传送请求架构的属性。Properties of the key delivery requests schema.

{
    "time": "2019-01-11T17:59:10.4908614Z",
    "resourceId": "/SUBSCRIPTIONS/00000000-0000-0000-0000-0000000000/RESOURCEGROUPS/SBKEY/PROVIDERS/MICROSOFT.MEDIA/MEDIASERVICES/SBDNSTEST",
    "operationName": "MICROSOFT.MEDIA/MEDIASERVICES/CONTENTKEYS/READ",
    "operationVersion": "1.0",
    "category": "KeyDeliveryRequests",
    "resultType": "Succeeded",
    "resultSignature": "OK",
    "durationMs": 315,
    "identity": {
        "authorization": {
            "issuer": "http://testacs",
            "audience": "urn:test"
        },
        "claims": {
            "urn:microsoft:azure:mediaservices:contentkeyidentifier": "3321e646-78d0-4896-84ec-c7b98eddfca5",
            "iss": "http://testacs",
            "aud": "urn:test",
            "exp": "1547233138"
        }
    },
    "level": "Informational",
    "location": "chinaeast2",
    "properties": {
        "requestId": "b0243468-d8e5-4edf-a48b-d408e1661050",
        "keyType": "Clear",
        "keyId": "3321e646-78d0-4896-84ec-c7b98eddfca5",
        "policyName": "56a70229-82d0-4174-82bc-e9d3b14e5dbf",
        "tokenType": "JWT",
        "statusMessage": "OK"
    }
} 
 {
    "time": "2019-01-11T17:59:33.4676382Z",
    "resourceId": "/SUBSCRIPTIONS/00000000-0000-0000-0000-0000000000/RESOURCEGROUPS/SBKEY/PROVIDERS/MICROSOFT.MEDIA/MEDIASERVICES/SBDNSTEST",
    "operationName": "MICROSOFT.MEDIA/MEDIASERVICES/CONTENTKEYS/READ",
    "operationVersion": "1.0",
    "category": "KeyDeliveryRequests",
    "resultType": "Failed",
    "resultSignature": "Unauthorized",
    "durationMs": 2,
    "level": "Error",
    "location": "chinaeast2",
    "properties": {
        "requestId": "875af030-b77c-416b-b7e1-58f23ebec182",
        "keyType": "Clear",
        "keyId": "3321e646-78d0-4896-84ec-c7b98eddfca5",
        "policyName": "56a70229-82d0-4174-82bc-e9d3b14e5dbf",
        "tokenType": "None",
        "statusMessage": "No token present in authorization header or URL."
    }
} 

后续步骤Next steps

监视媒体服务指标和诊断日志Monitor Media Services metrics and diagnostic logs