question

eva0307-4932 avatar image
0 Votes"
eva0307-4932 asked MayankBargali-MSFT commented

Send Data(Log Analytics) shape not working in Logic app

99676-output.png99650-input.png




Team,

while calling Send Data shape in Logic app, getting the above error, input and output attached.

Steps done:

1) Log Analytics workspace is create and configured in Logic App diagnostic settings.
2) the logs are being sent to Log Analytics for the complete run, results retrieved while querying 'AzureDiagnostics' in the query editor, but custom logs are not getting posted to Log analytics
3) the custom log table structure is not created in Log Analytics(through Data->custom logs).

If header needs to be specified, can you please let me know how to mention in Send Data shape?
Please provide your inputs.

azure-logic-apps
output.png (15.9 KiB)
input.png (15.3 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MayankBargali-MSFT avatar image
1 Vote"
MayankBargali-MSFT answered MayankBargali-MSFT commented

Hi @eva0307-4932

As per the error message, the status code is 403 i.e. the log app workspace ID was not authenticated with the primary/secondary key that you have provided.
I will suggest you to add a new connection and make sure that the workspace ID and primary/secondary key are entered correctly.

I have tested it at my end using the right workspace ID and keys and working as expected. To get the keys navigate to your log analytics workspace --> Advance settings --> Connected services --> Agent Management --> Windows server. Use the workspace ID and primary/secondary keys.

![99774-image.png

99804-image.png

With right keys:
99749-image.png

If I pass the wrong keys for my app workspace ID I do observe the same error as you have observed.

Wrong Keys:
99719-image.png

Hope the above helps you to resolve the issue. Feel free to get back to me if you need any assistance.

Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.


image.png (38.7 KiB)
image.png (13.9 KiB)
image.png (19.2 KiB)
image.png (15.0 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@eva0307-4932 Thanks for your response and glad to know that it has helped you. Feel free to get back to us in Microsoft Q&A if you need any assistance in the future.

0 Votes 0 ·