How to fix this bug Error: Data collection rule is invalid Multiple destinations for a stream 'Microsoft-AppServiceConsoleLogs'. Streams can only be delivered to multiple tables within the same workspace?

Nazar Horshchenko 0 Reputation points
2024-05-24T15:23:14.12+00:00

I created data collections rule via terraform and when I want to do editor transformations in log I have this error "Error: Data collection rule is invalid Multiple destinations for a stream 'Microsoft-AppServiceConsoleLogs'. Streams can only be delivered to multiple tables within the same workspace." but I have one destination. My export templates

    },
    "variables": {},
    "resources": [
        {
            "type": "Microsoft.Insights/dataCollectionRules",
            "apiVersion": "2023-03-11",
            "name": "[parameters('dataCollectionRules_sbxbc_playground_backend_dcr_name')]",
            "location": "germanywestcentral",
            "properties": {
                "destinations": {
                    "logAnalytics": [
                        {
                            "workspaceResourceId": "[parameters('workspaces_sbxbc_playground_logs_externalid')]",
                            "name": "sbxbc-playground-logs"
                        }
                    ]
                },
                "dataFlows": [
                    {
                        "streams": [
                            "Microsoft-Table-AppServiceConsoleLogs"
                        ],
                        "destinations": [
                            "sbxbc-playground-logs"
                        ],
                        "transformKql": "source\n| extend Context = parse_json(ResultDescription)\n| extend Thread_CF = tostring(Context.thread)\n| extend Level_CF = tostring(Context.level)\n| extend Logger_CF = tostring(Context.logger)\n| extend Message_CF = tostring(Context.message)\n| project-away Context,ResultDescription"
                    }
                ]
            }
        }
    ]
}
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,922 questions
0 comments No comments
{count} votes