Skip to main content

Notifications

Community site session details

Community site session details

Session Id : TlE5C3FX87niuPOrI13Kwu
Power Automate - Building Flows
Unanswered

How to send flow logs to Azure Analytics?

Like (0) ShareShare
ReportReport
Posted on 28 Nov 2022 06:15:12 by

Hi Folks,

 

I'm building a scheduled flow and would like the flow run logs to be passed to Azure Analytics workspace (which is already setup). I'm trying to use the Send Data action in Azure Log Analytics Data Collector - Connectors | Microsoft Learn to accomplish this. I was able to create connection using workspace ID and primary key. Although when I try to send test json as log, I receive the below error:

 

{
 "error": {
 "code": 403,
 "source": "flow-apim-unitedstates-etc-etc.azure-apim.net",
 "clientRequestId": "e6f59b75-1234-4f2c-a476-12345",
 "message": "The response is not in a JSON format.",
 "innerError": "Cannot read server response."
 }
}

 

I have contributor access to the workspace. Can someone help me what I might be doing wrong. Also I do not have a custom log set up. Could that be the issue?

 

Thank you.

  • rbn_nue Profile Picture
    on 28 Nov 2022 at 13:21:52
    Re: How to send flow logs to Azure Analytics?

    Hi @fchopo 

     

    Thank you for the response. I'm using the below body:

     

    [{
    "FlowName": "test",
    "StepName": "Flow Started",
    "Status": "Success",
    "FileGUID": "value4"
    }]

     

    Also, the error mentions response body. 

     

    Thank you.

  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on 28 Nov 2022 at 11:35:21
    Re: How to send flow logs to Azure Analytics?

    Hi @rbn_nue 

    Could you share the data and/or format you're using to send to Log Analytics? As the error message states, it seems it's not in a JSON Format.

    Regards,

    Ferran

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 97

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 70 Super User 2025 Season 1

#3
David_MA Profile Picture

David_MA 48 Super User 2025 Season 1

Overall leaderboard
Loading started