Query Lifetime

The lifetime of a query and availability of the results depends on the type of query:

  • For a live query, the query continues running providing the historical part has completed for a long time. This is to allow live queries to show data quickly so that when a dashboard, for example, is opened the dashboard can be populated quickly.

  • For static (non-live) queries, the query is kept alive if the query is still being polled (see Polling a Query Job). The default interval is 60 seconds for the query to time out if the query is not polled.

Queries (and query results) may also be reused as part of other queries, especially the query has been stored as a saved search and this can improve the performance of common queries used across a selection of widgets within a single dashboard.

Because queries imply the storage of state information for all the relevant events, effective management of the active queries in the system is critical to maximize the memory available for active queries.