Log analytics workspace post API

sakuraime 2,351 Reputation points
2021-04-09T14:36:14.27+00:00

I have serveral questions about Log analytics workspace post API to post event to Log analytic workspace

  1. can we secure the api from public internal ? or just allow from particular vnet ?
  2. which argument to control which custom log are going to post to ?
  3. any example to post this api from powershell ?
  4. what authentication method can be for this post API ??
Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. olufemia-MSFT 2,866 Reputation points
    2021-04-12T22:16:50.717+00:00

    Hello @sakuraime , Happy to help with your questions.

    Not sure what speciifc "workspace Post API" you are referencing but here's related API content to get you started. (snipped below)
    Check out this content for example on calling log analytics REST API via PowerShell. (snipped below)

    Kindly elaborate if there's a speicfic LA API / Operation you wish to invoke and will be happy assist further.

    Cheers.

    LogAnalytics API Reference Guide (Dev)

    87141-postla.png

    LogAnalytics API refrence for PowerShell

    87113-psla.png

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.