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:
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-code?tabs=net
Other option is using common API call following this guied:
https://learn.microsoft.com/en-us/azure/azure-monitor/logs/tutorial-logs-ingestion-portal
Besides that You definetevely will need Kusto to query this information:
https://learn.microsoft.com/en-us/training/modules/write-first-query-kusto-query-language/
If the information helped address your question, please Accept the answer.
Luis