Use the ingestion_time function to retrieve the timestamp of when each record was ingested into Axiom. This function helps you distinguish between the original event time (as captured in the _time field) and the time the data was actually received by Axiom.

You can use ingestion_time to:

  • Detect delays or lags in data ingestion.
  • Filter events based on their ingestion window.
  • Audit data pipelines by comparing event time with ingestion time.

This function is especially useful when working with streaming or event-based data sources where ingestion delays are common and might affect alerting, dashboarding, or correlation accuracy.

For users of other query languages

If you come from other query languages, this section explains how to adjust your existing queries to achieve the same results in APL.

Usage

Syntax

ingestion_time()

Parameters

This function does not take any parameters.

Returns

A datetime value that represents when each record was ingested into Axiom.

Use case examples

Use ingestion_time to identify delays between when an HTTP request occurred and when it was ingested into Axiom.

Query

['sample-http-logs']
| extend ingest_time = ingestion_time()
| extend delay = datetime_diff('second', ingest_time, _time)
| where delay > 1
| project _time, ingest_time, delay, method, uri, status

Run in Playground

Output

_timeingest_timedelaymethoduristatus
2025-06-10T12:00:00Z2025-06-10T12:01:30Z90GET/api/products200
2025-06-10T12:05:00Z2025-06-10T12:06:10Z70POST/api/cart/add201

This query calculates the difference between the ingestion time and event time, highlighting entries with more than 60 seconds delay.