Skip to content

Latest commit

 

History

History
63 lines (44 loc) · 2.43 KB

File metadata and controls

63 lines (44 loc) · 2.43 KB
title Rerun queries in query history
description Learn about the query history tab in advanced hunting
search.appverid met150
ms.service defender-xdr
ms.subservice adv-hunting
f1.keywords
NOCSH
ms.author pauloliveria
author poliveria
ms.localizationpriority medium
manager dansimp
audience ITPro
ms.collection
m365-security
tier3
ms.custom
cx-ti
cx-ah
appliesto
Microsoft Defender XDR
Microsoft Sentinel in the Microsoft Defender portal
ms.topic how-to
ms.date 03/28/2025

Rerun queries in query history

[!INCLUDE Microsoft Defender XDR rebranding]

Important

Some information relates to prereleased product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Your previous queries appear in the Query history tab in the lower half of the advanced hunting page. You can run queries you have generated and run before even if you have already closed the query tab that contains it.

View the query history tab

To view your query history, select the Query history tab.

:::image type="content" source="media/advanced-hunting-query-history/advanced-hunting-query-history.png" alt-text="Screenshot of the query history pane in advanced hunting" lightbox="media/advanced-hunting-query-history/advanced-hunting-query-history.png":::

Your recent queries appear in descending order of when you last ran them. The query history contains up to 30 queries from the last 28 days.

By default, Query history contains following columns:

  • Time - when the query was started
  • Query
  • Query time - how long the query ran
  • State - whether the query was completed, failed, or was throttled

Select Customize columns to hide any of the columns in your view.

Rerun queries from query history

To use any of your previous queries, select the query. The Run query and Use in editor options then appear.

:::image type="content" source="media/advanced-hunting-query-history/advanced-hunting-query-history-functions.png" alt-text="Screenshot of the query history functions in advanced hunting" lightbox="media/advanced-hunting-query-history/advanced-hunting-query-history-functions.png":::

Select Run query to load and run the query in the query editor. Select Use in editor to load the query in the editor, where you can then refine it further.