How to access kusto logs from a different service

Microsoft

Hi, 

    We are using Log analytics and Kusto queries to analyse the data. 

Our scenario is, one service is exporting the logs to the application insights and other service (consumer) should be able to connect to the application insights and run the Kusto queries and fetch the data.

The question i have is, How connect the consumer service to connect the Kusto logs and run queries.

 

Thanks. 

3 Replies

Hi,

 

You have many options to integrate the Log data into other systems:

1. You can use the Azure Monitor Logs in Logic Apps to build workflows

2. You can use PowerShell to write scripts: https://docs.microsoft.com/en-us/powershell/module/az.operationalinsights/invoke-azoperationalinsigh...

3. You can use any REST client as explained here: https://dev.loganalytics.io/

 

Thanks

Meir

@Meir Mendelovich

Thanks for the response. What I would like to do is, run Logs (Analytics) Kusto queries in Application Insights from different service remotely. The details you provided was for Operational insights. I just realised that both are different.

Can you please let me know if there is a way to run Log Analytics Kusto queries  from remote

 

Please find the attached screenshot. I would like to run a query which is shown in the screenshot from remote service. 

Hi,

Application Insights are very similar to Log Analytics. Here is the API documentation: https://dev.applicationinsights.io/

Thanks,
Meir