how to get input json for failed logic app workflow calls

Aswin Aravind C 20 Reputation points
2024-11-07T07:00:22.22+00:00

I have made around 18K api calls to a logic app workflow and all of them failed. How can I get the input JSON that went into those 18K calls? I tried to query with proper timeframe in log analytics workspace but it only gives other details, not the input JSON. Does anyone know which table and columns to query to obtain this?

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,217 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sohaib Fazal 80 Reputation points
    2024-11-07T09:40:48.97+00:00

    Capturing the input JSON for failed API calls in a Logic App can be challenging since it's not always logged by default. However, you can try using the AzureDiagnostic table in Log Analytics, which holds detailed information about each Logic App run, including inputs—if logging was set up properly.

    If you don't find the input JSON there, it might be because input logging wasn't enabled in the Logic App's diagnostic settings at the time of those calls. To avoid this issue in the future, make sure input logging is turned on in the diagnostic settings. This will ensure that all incoming request data is captured in the logs going forward.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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