Skip to content

Commit 1a9618b

Browse files
committed
Adding optimization stuff
1 parent 6121355 commit 1a9618b

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

defender-xdr/advanced-hunting-best-practices.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,26 @@ ms.custom:
1818
- cx-ti
1919
- cx-ah
2020
ms.topic: best-practice
21-
ms.date: 04/22/2024
21+
appliesto:
22+
- Microsoft Defender XDR
23+
- Microsoft Sentinel in the Microsoft Defender portal
24+
ms.date: 02/24/2025
2225
---
2326

2427
# Advanced hunting query best practices
2528

2629
[!INCLUDE [Microsoft Defender XDR rebranding](../includes/microsoft-defender.md)]
2730

2831

29-
**Applies to:**
30-
- Microsoft Defender XDR
32+
Get results faster and avoid timeouts while running complex queries by optimizing your queries. For guidance on improving query performance:
33+
- [General optimization tips](#understand-cpu-resource-quotas) - in this article
34+
- [Optimize the `join` operator](#optimize-the-join-operator) - in this article
35+
- [Optimize the `summarize` operator](#optimize-the-summarize-operator) - in this article
36+
- [Query scenarios](#query-scenarios) - in this article
37+
- [Kusto query best practices](/azure/kusto/query/best-practices) - includes several scenarios for making your query more efficient
38+
- [Optimize log queries in Azure Monitor](/azure/azure-monitor/logs/query-optimization#early-filtering-of-records-prior-to-using-high-cpu-functions) - contains additional guidance for query optimization
39+
- [Optimizing KQL queries](https://www.youtube.com/watch?v=ceYvRuPp5D8) (video) - most common ways to improve your query
3140

32-
Apply these recommendations to get results faster and avoid timeouts while running complex queries. For more guidance on improving query performance, read [Kusto query best practices](/azure/kusto/query/best-practices).
3341

3442
## Understand CPU resource quotas
3543
Depending on its size, each tenant has access to a set amount of CPU resources allocated for running advanced hunting queries. For detailed information about various usage parameters, [read about advanced hunting quotas and usage parameters](advanced-hunting-limits.md).
@@ -40,7 +48,6 @@ After running your query, you can see the execution time and its resource usage
4048

4149
Customers who run multiple queries regularly should track consumption and apply the optimization guidance in this article to minimize disruption resulting from exceeding quotas or usage parameters.
4250

43-
Watch [Optimizing KQL queries](https://www.youtube.com/watch?v=ceYvRuPp5D8) to see some of the most common ways to improve your queries.
4451

4552
## General optimization tips
4653

defender-xdr/custom-detection-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Only data from devices in the scope will be queried. Also, actions are taken onl
265265
After reviewing the rule, select **Create** to save it. The custom detection rule immediately runs. It runs again based on configured frequency to check for matches, generate alerts, and take response actions.
266266

267267
> [!IMPORTANT]
268-
> Custom detections should be regularly reviewed for efficiency and effectiveness. To make sure you're creating detections that trigger true alerts, take time to review your existing custom detections by following the steps in [Manage existing custom detection rules](#manage-existing-custom-detection-rules).
268+
> Custom detections should be regularly reviewed for efficiency and effectiveness. For guidance on how to optimize your queries, follow the **[Advanced hunting query best practices](advanced-hunting-best-practices.md)**. To make sure you're creating detections that trigger true alerts, take time to review your existing custom detections by following the steps in **[Manage existing custom detection rules](#manage-existing-custom-detection-rules)**.
269269
>
270270
> You maintain control over the broadness or specificity of your custom detections so any false alerts generated by custom detections might indicate a need to modify certain parameters of the rules.
271271

0 commit comments

Comments
 (0)