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
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,339)