Skip to content

Commit 6b0d0e3

Browse files
authored
Update container-insights-logging-v2.md
Adding Multi-line logging in container insights information
1 parent 7ab735e commit 6b0d0e3

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,5 +71,18 @@ This applies to the scenario where you have already enabled container insights f
7171
>* The configuration change can take a few minutes to complete before it takes effect. All ama-logs pods in the cluster will restart.
7272
>* The restart is a rolling restart for all ama-logs pods. It won't restart all of them at the same time.
7373

74+
## Multi-line logging in Container Insights
75+
Azure Monitor - Container insights now supports multiline logging. With this feature enabled, previously split container logs will be stitched together and sent as single entries to the ContainerLogV2 table. Customers will be able see container log lines upto to 64KB (up from the existing 16Kb limit). If the stitched log line is larger than 64KB, it will get truncated due to Log Analytics limits.
76+
Additionally, the feature also adds support for .NET and Go stack traces which will appear as single entries instead of being split into multiple entries in ContainerLogV2 table.
77+
78+
### Pre-requisites
79+
Customers must enable *ContainerLogV2* for multi-line logging to work. Go here to [enable ContainerLogV2](/containers/container-insights-logging-v2#enable-the-containerlogv2-schema) in Container Insights.
80+
81+
### How to enable
82+
Multi-line logging can be enabled by setting *enable_multiline_logs* flag to “true” in [the config map](https://github.com/microsoft/Docker-Provider/blob/ci_prod/kubernetes/container-azm-ms-agentconfig.yaml#L49)
83+
84+
### Next steps for Multi-line logging
85+
* Read more about the [ContainerLogV2 schema](https://aka.ms/ContainerLogv2)
86+
7487
## Next steps
7588
* Configure [Basic Logs](../logs/basic-logs-configure.md) for ContainerLogv2.

0 commit comments

Comments
 (0)