You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/containers/container-insights-logging-v2.md
+23-3Lines changed: 23 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,9 +101,29 @@ This applies to the scenario where you have already enabled container insights f
101
101
>* The configuration change can take a few minutes to complete before it takes effect. All ama-logs pods in the cluster will restart.
102
102
>* The restart is a rolling restart for all ama-logs pods. It won't restart all of them at the same time.
103
103
104
-
## Multi-line logging in Container Insights (preview)
104
+
## Multi-line logging in Container Insights
105
105
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.
106
-
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.
106
+
Additionally, the feature also adds support for .NET, Go, Python and Java stack traces, which appear as single entries instead of being split into multiple entries in ContainerLogV2 table.
107
+
108
+
Below are two screenshots which demonstrate Multi-line logging at work for Go exception stack trace:
109
+
110
+
Multi-line logging disabled scenario:
111
+
112
+

113
+
114
+
Multi-line logging enabled scenario:
115
+
116
+
[  ](./media/container-insights-logging-v2/multi-line-enabled-go.png#lightbox)
117
+
118
+
Similarly, below screenshots depict Multi-line logging enabled scenarios for Java and Python stack traces:
119
+
120
+
For Java:
121
+
122
+
[  ](./media/container-insights-logging-v2/multi-line-enabled-java.png#lightbox)
123
+
124
+
For Python:
125
+
126
+
[  ](./media/container-insights-logging-v2/multi-line-enabled-python.png#lightbox)
107
127
108
128
### Pre-requisites
109
129
@@ -116,7 +136,7 @@ Multi-line logging is a preview feature and can be enabled by setting **enabled*
116
136
[log_collection_settings.enable_multiline_logs]
117
137
# fluent-bit based multiline log collection for go (stacktrace), dotnet (stacktrace)
118
138
# if enabled will also stitch together container logs split by docker/cri due to size limits(16KB per log line)
0 commit comments