Skip to content

Commit ef3f1da

Browse files
Merge pull request #252798 from bwren/docs-editor/container-insights-logging-v2-1695685379
Update container-insights-logging-v2.md
2 parents 125b65a + 63f2162 commit ef3f1da

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Follow the instructions to configure an existing ConfigMap or to use a new one.
6767

6868
1. For configuring via CLI, use the corresponding [config file](./container-insights-cost-config.md#configuring-aks-data-collection-settings-using-azure-cli), update the `enableContainerLogV2` field in the config file to be true.
6969

70+
7071
---
7172

7273
### Configure an existing ConfigMap
@@ -109,11 +110,16 @@ Additionally, the feature also adds support for .NET and Go stack traces, which
109110
Customers must [enable ContainerLogV2](./container-insights-logging-v2.md#enable-the-containerlogv2-schema) for multi-line logging to work.
110111

111112
### How to enable
112-
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)
113+
Multi-line logging is a preview feature and can be enabled by setting **enabled** flag to "true" under the `[log_collection_settings.enable_multiline_logs]` section in the the [config map](https://github.com/microsoft/Docker-Provider/blob/ci_prod/kubernetes/container-azm-ms-agentconfig.yaml)
113114

114-
### Next steps for Multi-line logging
115-
* Read more about the [ContainerLogV2 schema](https://aka.ms/ContainerLogv2)
115+
```yaml
116+
[log_collection_settings.enable_multiline_logs]
117+
# fluent-bit based multiline log collection for go (stacktrace), dotnet (stacktrace)
118+
# if enabled will also stitch together container logs split by docker/cri due to size limits(16KB per log line)
119+
enabled = "true"
120+
```
116121

117122
## Next steps
118123
* Configure [Basic Logs](../logs/basic-logs-configure.md) for ContainerLogv2.
119124
* Learn how [query data](./container-insights-log-query.md#container-logs) from ContainerLogV2
125+

0 commit comments

Comments
 (0)