Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application Insights log: search by Information content

I want to search Application Insights logs by messages inside. For example, I have the following log:

enter image description here

I want to search all calls, when message: 'FunctionCallEfsApi no messages' consists... How can I do it?

like image 824
Oleg Sh Avatar asked Nov 08 '19 10:11

Oleg Sh


People also ask

How do I view information logs in application Insights?

View logs in Application InsightsGo to Application Insights resource in your resource group. Go to Logs under Monitoring section. Click on traces eye button to get log traces. Select Time Range and click Run.

How do I query an Azure application insight?

In the Azure portal You can open transaction search from the Application Insights Overview tab of your application. You can also select Search under Investigate on the left menu.

How do you query custom events in application Insights?

In the Azure Portal, navigate to the Application Insights resource, and click Log Analytics. Log queries help you to fully leverage the value of the data collected in Azure Monitor Logs. Query your custom events by entering “customEvents” in the prompt and click Run.


2 Answers

If you are looking inside traces or exceptions inside Application Insights, you can use following query to get all messages when message contains : 'FunctionCallEfsApi no messages'

traces | where message contains "FunctionCallEfsApi no messages" 

like image 79
Aparna Gadgil Avatar answered Sep 30 '22 18:09

Aparna Gadgil


You can navigate to Logs(Analytics) on Application Insights resource you have and write a query to fetch those information,

traces
| where message contains "FunctionCallEfsApi no messages" 

enter image description here

like image 25
Sajeetharan Avatar answered Sep 30 '22 19:09

Sajeetharan