logic app with error "Error": "InvalidDataFormat"

Ali Salem Panah 0 Reputation points
2024-09-05T08:36:24.57+00:00

Hi team

I wanted to integrate of our our tools with sentinel via webhook after creating the app and run test i got this error { "Error": "InvalidDataFormat", "Message": null } how can i fix it this is my code

{
    "definition": {
        "$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
        "actions": {
            "Send_Data": {
                "inputs": {
                    "body": "@triggerBody()",
                    "headers": {
                        "Content-Type": "application/json",
                        "Log-Type": "cocko_logs"
                    },
                    "host": {
                        "connection": {
                            "referenceName": "azureloganalyticsdatacollector"
                        }
                    },
                    "method": "post",
                    "path": "/api/logs"
                },
                "runAfter": {},
                "type": "ApiConnection"
            }
        },
        "contentVersion": "1.0.0.0",
        "outputs": {},
        "triggers": {
            "When_a_HTTP_request_is_received": {
                "inputs": {
                    "method": "POST"
                },
                "kind": "Http",
                "type": "Request"
            }
        }
    },
    "kind": "Stateful"
}
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,094 questions
0 comments No comments
{count} votes

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.