Skip to main content
Sumo Logic

queryTimeRange()

Calculates the time range of a message.

 queryTimeRange() 

The queryTimeRange() operator calculates the time range of a message. You can use it to establish time ranges for your continuous queries (CQs).

Syntax:

 

  • queryTimeRange() [ as alias ]

Rules:

 

  • An alias is required.

Examples:

To get the range of time for your queries:

error
| queryTimeRange() as range