Skip to content

Commit d3ffec6

Browse files
Merge pull request #232910 from austonli/patch-33
Exporting container logs as json
2 parents 0d69aee + b76bed5 commit d3ffec6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

articles/azure-monitor/containers/container-insights-logging-v2.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ The new fields are:
3232
LogSource: string,
3333
TimeGenerated: datetime
3434
```
35+
36+
>[!NOTE]
37+
> [Export](../logs/logs-data-export.md) to Event Hub and Storage Account is not supported if the incoming LogMessage is not a valid JSON. For best performance, we recommend emitting container logs in JSON format.
38+
3539
## Enable the ContainerLogV2 schema
3640
Customers can enable the ContainerLogV2 schema at the cluster level. To enable the ContainerLogV2 schema, configure the cluster's ConfigMap. Learn more about ConfigMap in [Kubernetes documentation](https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/) and in [Azure Monitor documentation](./container-insights-agent-config.md#configmap-file-settings-overview).
3741
Follow the instructions to configure an existing ConfigMap or to use a new one.

0 commit comments

Comments
 (0)