Hello Amritendu Mondal,
Welcome to the Microsoft Q&A forum.
As your query is filtering the data based on a set of regular expressions, which can be a resource-intensive operation.
Below are the few suggestions to speed up the query:
- Reduce the amount of data being processed by filtering the data as early as possible in the query, using a datetime column to help Kusto optimize its query operation
- Avoid using redundant qualified references
- Use the materialize() function: This function can be used to speed up queries that perform heavy calculations whose results are used multiple times in the query. It evaluates a tabular expression only once.
- Consider union operator for the filtering, parsing and summarize operations.
- Use the has_any operator instead of multiple or conditions
Reference document:
https://video2.skills-academy.com/en-us/azure/data-explorer/kusto/query/best-practices
https://video2.skills-academy.com/en-us/azure/data-explorer/kusto/query/materialize-function
https://video2.skills-academy.com/en-us/azure/data-explorer/kusto/query/join-time-window
https://video2.skills-academy.com/en-us/azure/data-explorer/kusto/query/parse-operator https://stackoverflow.com/questions/65310383/how-to-use-regex-in-kusto-query
I hope this helps.