Create match monitor
To create a match monitor, follow these steps:- Click the Monitors tab, and then click New monitor.
- Click Match monitor.
- Name your monitor and add a description.
- Click Add notifier, and then select the notifiers that define how you want to receive notifications for this monitor. For more information, see Notifiers.
- To define your query, use one of the following options:
- To use the visual query builder, click Simple query builder. Select the filters, and then click Run query to preview the recent events that match your filters. To preview matching events over a specific period, select the time range.
- To use Axiom Processing Language (APL), click Advanced query language. Write a query using the
whereoperator to filter for events, and then click Run query to preview the results. To transform matching events before sending them to you, use theextendand theprojectoperators. Don’t use aggregations in your query. For more information, see Introduction to APL.
- When the preview displays the events that you want to match, click Create. You can’t create a match monitor if more than 500 events match your query within the past 24 hours.
If you define your query using APL, you can use the following limited set of tabular operators:
- extend
- extend-valid
- parse
- parse-kv
- project
- project-away
- project-keep
- project-rename
- project-reorder
- where
Handle ingestion delays
If your data experiences ingestion delays (the time between when an event occurs and when Axiom receives it), you may need to configure your match monitor to account for this delay. Without accounting for delays, your monitor may miss events that arrive late.1
Identify your ingestion delay
Use the This query shows you the average and maximum ingestion delay for your dataset.
ingestion_time() function to measure the delay between event time (_time) and ingestion time:2
Configure the secondDelay parameter
When creating or updating your monitor through the API, add the
secondDelay parameter to account for ingestion delays. This parameter tells the monitor to wait before evaluating events, ensuring late-arriving data is included.For example, if your ingestion delay is 45 minutes (2,700 seconds), set secondDelay to 2700 or higher:The
secondDelay parameter is currently only available through the API and not in the UI. For more information, see the Monitors API documentation.3
Verify the configuration
After configuring
secondDelay, monitor the alerts to ensure events are being captured correctly. You may need to adjust the value based on your actual ingestion patterns.Match monitors evaluate events based on their
_time field (when the event occurred), not when Axiom received them. If you have a 45-minute ingestion delay and your monitor runs every minute, it checks for events that occurred roughly one minute ago according to _time. Without secondDelay, these events may not have arrived yet.