Log Analytics Data Collector API PowerShell Function

Iron Contributor

I created a function that takes the input of time, log type and a hashtable and writes it to Log Analytics. This was intended to be a “universal” log writer for Log Analytics. I use it in an Azure Automation Module so I can pass log data from any runbook to Log Analytics but it could be used in any PowerShell Script.

 

Function is on GitHub.

https://github.com/tsrob50/LogAnalyticsAPIFunction

 

Links to Resources and overview video here:

http://www.ciraltos.com/azure-oms-log-analytics-step-by-step-data-collector-api/

0 Replies