Find words that are searched for in a web application in Azure monitor, log analytics, or app insights

Yusko, Don (CTR) - FS, VA 25 Reputation points

We have a web app with a search bar and I am looking to find the metrics or any word that was searched for. I have been through log analytics but it asks to define the keyword and a specific time frame vs a rolling time e.g. past 30 days. I also am not familiar with kusto so that does not help either.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,783 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luis Arias 4,716 Reputation points

    Hello Yusko,,

    In your case of tracking words searched in a web application, first you would need to log these search queries in your application code and then send these logs to Azure Monitor, Log Analytics, or Application Insights. Once the data is there, you can use KQL to query it.

    Depends on wich programing language is used you can use the Azure Monitor SDK to send this custom logs:

    Other option is using common API call following this guied:

    Besides that You definetevely will need Kusto to query this information:

    If the information helped address your question, please Accept the answer.


    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful