Skip to content

Commit 91e84c2

Browse files
Merge pull request #234726 from ibrar2411/patch-7
Update container-insights-logging-v2.md
2 parents 43aa261 + dc9c6d3 commit 91e84c2

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 are stitched together and sent as single entries to the ContainerLogV2 table. Customers are able see container log lines upto to 64 KB (up from the existing 16 KB limit). If the stitched log line is larger than 64 KB, it gets truncated due to Log Analytics limits.
76+
Additionally, the feature also adds support for .NET and Go stack traces, which 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 - This is currently a preview feature
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)