Trying out Multi Line logging Azure Announcement (Preview Feature)

Waqas 40 Reputation points
2023-06-23T01:59:48.4+00:00

Hi,

I am trying out Multi Line logging Azure Announcement (Preview Feature). I copied and applied the example configmap and changed as following:

[log_collection_settings.enable_multiline_logs]
          # fluent-bit based multiline log collection for go (stacktrace), dotnet (stacktrace)
          # if enabled will also stitch together container logs split by docker/cri due to size limits(16KB per log line)
          enabled = true

I tried both "true" with quotes and without, but I don't see multiline logs when queried in Azure console.

I got ContainerLogV2 working and get results in Azure console from that table.

Our logs are being generated by Python code and I can see multi-line logs from command line as:

I0623 01:30:06.411888 7891591936 _universal.py:523] Request URL: 'https://login.microsoftonline.com/403b900c-8ec5-41d4-b435-53f4bb309e58/oauth2/v2.0/token'
Request method: 'POST'
Request headers:
'Content-Type': 'application/x-www-form-urlencoded'
'User-Agent': 'azsdk-python-identity/1.12.0 Python/3.9.12 (Linux-3.10.0-x86_64-with-glibc2.36)'
A body is sent with the request
I0623 01:30:06.539142 7891591936 _universal.py:554] Response status: 200
Response headers:
'Cache-Control': 'no-store, no-cache'
'Pragma': 'no-cache'
'Content-Type': 'application/json; charset=utf-8'
'Expires': '-1'

But in Kutso query output in Azure console, each line is a separate entry.

Any suggestions or pointers on how to get it working?

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
{count} votes

Answer accepted by question author
  1. vipullag-MSFT 26,522 Reputation points Moderator
    2023-06-28T04:31:57.24+00:00

    Hello Waqas

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Firstly, apologies for the delay in responding here. I have checked with internal team on this and confirming this here.

    Currently, there is no support for Python. However, the python support will be added in the next releases.

    Thanks for your patience.

    Hope this helps.

    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.