Multi Line logging Azure Announcement (Preview Feature)
Published May 09 2023 03:44 PM 5,614 Views

We’re excited to let you know that 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 up 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. This feature enables the customers to directly consume the logs in meaningful ways without having to spend time stitching them with custom Kusto queries. 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.


Why this is important:

Logs are an essential part of monitoring and troubleshooting applications running in containers. However, when logs are split across multiple lines, it can be challenging to consume them effectively. View the example of Multi-Line below:


Multi-Line Disabled



Multi-Line Enabled




To enable multi-line logging:

1. Make sure agent is updated to version 3.1.6 or later

2. Customers must enable ContainerLogV2 for multi-line logging to work. Go to the ConfigMap to enable ContainerLogV2 in Container Insights.


3. Set enable_multiline_logs flag to “true” in the config map.


4. Apply the ConfigMap:

kubectl apply -f container-azm-ms-agentconfig.yaml


Next steps for multi-line logging:

Read more about the ContainerLogV2 schema here.


Please share any feedback for this feature using this form:

Version history
Last update:
‎May 09 2023 03:43 PM
Updated by: