Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.54 KB

File metadata and controls

27 lines (16 loc) · 1.54 KB

AzureLogAnalyticsHelper

This project is an Azure Functions based wrapper over the Azure Log Analytics REST API. To use this Azure function you need to add three settings to your Azure Functions App Settings.

OPERATIONS_MANAGEMENT_WORKSPACE

OPERATIONS_MANAGEMENT_KEY

LOG_ANALYTICS_APPNAME

##Where do I get the values for this setttings?

The OPERATIONS_MANAGEMENT_WORKSPACE is the "name" (really a GUIDish thing) that is shows up under overview in the Azure Portal after you've created the Azure Log Analytics service. Create your Azure Log Analytics Workspace.

The OPERATIONS_MANAGEMENT_KEY can be obtained the by looking at the data sources in this article.

The LOG_ANALYTICS_APPNAME should be the name you want to appear for your app in the Log Analytics Service. Don't uses spaces of special characters.

How do I deploy this?

Deploy it using continuous deployment.

How do I call this endpoint?

Get the endpoint as described in this acticle.

What does it expect?

It will take any JSON in the body and send it off to the Azure Log Anayltics Service.