Skip to content

Commit 6c6a8a7

Browse files
committed
Update restore.md
1 parent 7d9f19a commit 6c6a8a7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

articles/azure-monitor/logs/restore.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,23 @@ az monitor log-analytics workspace table restore create --subscription ContosoSI
8484
```
8585

8686
---
87+
88+
## Query restored data
89+
90+
Restored logs retain their original timestamps. When you run a query on restored logs, set the time range for your query based on when the data was originally generated.
91+
92+
Set the query time range by either:
93+
94+
- Selecting **Custom** in the **Time range** dropdown at the top of the query editor and setting **From** and **To** values.
95+
- Specifying the time range in the query. For example:
96+
97+
```kusto
98+
let startTime =datetime(01/01/2022 8:00:00 PM);
99+
let endTime =datetime(01/05/2022 8:00:00 PM);
100+
TabelName_RST
101+
| where TimeGenerated between(startTime .. endTime)
102+
```
103+
87104
## Dismiss restored data
88105
89106
To save costs, dismiss restored data when you no longer need it by deleting the restored table.

0 commit comments

Comments
 (0)