web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to send flow logs ...
Power Automate
Unanswered

How to send flow logs to Azure Analytics?

(0) ShareShare
ReportReport
Posted on 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.

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    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

  • rbn_nue Profile Picture
    on at

    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.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard