We are using Azure Monitor custom logs to collect logs from several applications. For pushing data we are using Data Collector API which is well documented.
Is there a REST API that allows to search custom logs?
We are using Azure Monitor custom logs to collect logs from several applications. For pushing data we are using Data Collector API which is well documented.
Is there a REST API that allows to search custom logs?
Surely you can use the application insights
api to search your custom logs.
GET /v1/apps/{appId}/metrics/{metricId}
Use the API in the link https://docs.microsoft.com/en-us/rest/api/loganalytics/query/get .
Below will be the sample call
GET https://api.loganalytics.io/v1/workspaces/63613592-b6f7-4c3d-a390-22ba13102111/query?query=Usage | take 10×pan=PT12H