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

Eva Baishya 61 Reputation points
2021-05-26T05:41:40.847+00:00

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
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,544 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2021-05-26T08:08:49.817+00:00

    Hi @Eva Baishya

    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.

    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.