cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Using AzureLogAnalyticsDataCollector.SendData error

I'm trying to send some data tu Log Analytics using Azure Log Analytics Data Collector in preview. The problem is that is throwing the some error every time Error of AzureLogAnalyticsDataCollector.SendData: { "Error": "InvalidDataFormat", "Message": null }.

Anyone know how can send information well?

 

I've try this:

AzureLogAnalyticsDataCollector.SendData("Event";"{'message':'Btn pressed'}")

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to the documentation here:

https://docs.microsoft.com/en-us/connectors/azureloganalyticsdatacollector/#send-data

Below are the required Parameters:

Name Key Required Type Description
JSON Request body
body True string

Send data to Azure Log Analytics workspace.

Custom Log Name
Log-Type True string

Name of the custom log.

 

If this issue remains after you make sure both are included correctly, then this might be a temporary issue since this connector is still in preview. I have found another thread that has the same error:

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/AzureLogAnalyticsDataCollector-not-working/td-p/252048

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-monli-msft
Community Support
Community Support

Hi @Anonymous ,

 

According to the documentation here:

https://docs.microsoft.com/en-us/connectors/azureloganalyticsdatacollector/#send-data

Below are the required Parameters:

Name Key Required Type Description
JSON Request body
body True string

Send data to Azure Log Analytics workspace.

Custom Log Name
Log-Type True string

Name of the custom log.

 

If this issue remains after you make sure both are included correctly, then this might be a temporary issue since this connector is still in preview. I have found another thread that has the same error:

https://powerusers.microsoft.com/t5/Expressions-and-Formulas/AzureLogAnalyticsDataCollector-not-working/td-p/252048

 

Regards,

Mona

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,233)