Match monitors
This page explains how to create match monitors.
Match monitors allow you to continuously filter your log data and send you matching events. Axiom sends a notification for each matching event. By default, the notification message contains the entire matching event in JSON format. When you define your match monitor using APL, you can control which event attributes to include in the notification message.
Axiom recommends using match monitors for alerting purposes only. A match monitor runs every minute and reports up to nine matching events per run. For notification rate limits, see Notification limits. A notification can usually include events up to 0.1 MB but the maximum size can be smaller depending on the type of the notifier.
Create match monitor
To create a match monitor, follow these steps:
- Click Monitors in the sidebar, and then click New monitor.
- In Monitor type, select Match.
- 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:
- Click Builder, select your filters, and then click Run to preview matching events. To preview events from a specific period, select the time range.
- Click Editor and write an APL query using
whereto filter for events. Click Run 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.
- Optional: Configure an evaluation delay to account for late events.
- When the preview displays the events that you want to match, click Save. You can’t create a match monitor if more than 500 events match your query within the past 24 hours.
You have created a match monitor, and Axiom alerts you about every event that matches the filters you set. Each notification contains the event details as shown in the preview.
Examples
For real-world use cases, see Monitor examples.