Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Subtracts the given timespan from the current UTC time.
Like now()
, if you use ago()
multiple times in a single query statement, the current UTC time
being referenced is the same across all uses.
ago(
timespan)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
timespan | timespan |
✔️ | The interval to subtract from the current UTC clock time now() . For a full list of possible timespan values, see timespan literals. |
A datetime value equal to the current time minus the timespan.
All rows with a timestamp in the past hour:
T | where Timestamp > ago(1h)