Jan 22 2024 01:07 AM
I encounter an intermittent error when running a hunting query on https://security.microsoft.com/advanced-hunting. Although the query sometimes executes successfully, it occasionally produces the following error:
"Query execution has exceeded the allowed limits. The query execution was preempted. This could possibly be due to high CPU and/or memory resource consumption. Optimize your query by following best practices and try again."
I'm curious if there are any other restrictions on the number of requests other than mentioned in Doc? Upon reviewing the Query resource, it indicates 0 instances of excessive usage in the last 30 days for both API and portal.
Jan 22 2024 05:07 AM
Hi @kavi_t,
The error message "Query execution has exceeded the allowed limits" can occur from various reasons.
These reasons can be:
Handle errors in advanced hunting for Microsoft Defender XDR | Microsoft Learn
Regarding limitations on the number of requests, the Microsoft Advanced Hunting API has specific restrictions:
Advanced Hunting API | Microsoft Learn
If encountering this error persistently, consider optimizing or breaking down the query.
Please click Mark as Best Response & Like if my post helped you to solve your issue.
This will help others to find the correct solution easily. It also closes the item.
If the post was useful in other ways, please consider giving it Like.
Kindest regards,
Leon Pavesic
(LinkedIn)