Forum Discussion
prokhorovd
Jan 30, 2020Copper Contributor
How to solve the problem of displaying multiline logs from the AKS cluster in Log Analytics?
I have two problems - the multiline logs of my AKS containers comes to the LogsAnalytics table as separate entries. And these records are also recorded out of order. The original logs is: 2020-0...
- Dec 12, 2023Hi, 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. For more information and instructions on how to enable, please visit our documentation here: https://learn.microsoft.com/en-us/azure/azure-monitor/containers/container-insights-logging-v2?tabs=configure-portal#multi-line-logging-in-container-insights.
vishiy
Microsoft
Mar 05, 2020prokhorovd , Container runtime picks up the log as is, and we (AKS Monitoring) pick up as-is from container runtime. In this case, each line in the stack is a seperate line (with a \n). Workaround people do is to log as a json. https://docs.microsoft.com/en-us/azure/azure-monitor/faq#how-do-i-enable-multi-line-logging
We will look into stitching intelligently up-stream at some point in the near future.