Azure function Dianostic Configuration for Logs in the ADLS Stoarge account.

Raguram Manokaran 90 Reputation points
2023-07-31T19:10:38.77+00:00

We have configured Azure diagnostic settings in the azure function to store the logs in the ADLS Stoarge account.The Functionality is working fine and a new container Named "insights-logs-functionapplogs" is created and we are able to see the Logs

But by Default iam getting Logs Like this
{"time":"2023-07-31T18:03:46.5905024Z","":"","properties": {"":"".......}}

{"time":"","":"","properties": {"":"".......}}

{"time":"","":"","properties": {"":"".......}}

Default Format.txt

Expected format:
[

{"time":"2023-07-31T18:03:46.5905024Z","":"","properties": {"":"".......}},

{"time":"","":"","properties": {"":"".......}},

{"time":"","":"","properties": {"":"".......}}

]

Expected Format.txt
How to solve this issue And i have attached Both the Expected response json and actual json for the Kind reference

User's image

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,566 questions
Azure Storage Explorer
Azure Storage Explorer
An Azure tool that is used to manage cloud storage resources on Windows, macOS, and Linux.
240 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,871 questions
{count} votes

1 answer

Sort by: Most helpful
  1. navba-MSFT 19,655 Reputation points Microsoft Employee
    2023-08-01T04:24:30.7333333+00:00

    @Raguram Manokaran Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    I understand that you want to change the default log format of the diagnostic monitor FunctionLogs stored in the Azure Storage.

    Please note that, it is not possible to change the default format. However, you can use the Data Flow activity to transform data in Azure Blob Storage using Azure Data Factory or Stream Analytics.

    To transform the logs into the expected format using Azure Stream Analytics, you can follow the steps mentioned in the Azure documentation here. For Azure Data Factory, refer this.

    More Information about the available logging fields are explained here:
    https://video2.skills-academy.com/en-us/azure/azure-monitor/reference/tables/functionapplogs

    Hope this helps.

    If you have any follow-up questions, please let me know. I would be happy to help.

    **

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments