XpoLog search monitor runs automatically by the system at scheduled intervals and execute a search query as its monitoring rule. The search monitor can be defined directly from the search console as well.
The following is a step by step flow to add a search monitor with alerts:
- In XpoLog Manager, on the left navigation panel select the Monitors and Tasks > Monitors menu item. The Monitors console is displayed.
- Click Add Monitor > Add New Search Monitor - Name the Monitor, and add the search query (simple or complex) you wish the monitor to execute.
- Schedule - configure the frequency that you wish for this monitor - based on the configured frequency the monitor will scan the log.
- Never will turn off the scheduler and will not execute the monitor
- Daily will run every day based on time interval (Repeat Every) or at a specific hour (Daily At)
- Weekly - will run on the specified day(s) based on time interval (Repeat Every) or at a specific hour (Daily At)
- Monthly - will run on the specified month(s) on a given day based on time interval (Repeat Every) or at a specific hour (Daily At)
Note: In the time frame section you can define whether it will run on new data only on each execution (XpoLog keeps reference to the last scanned point), or to run on a specified time frame on each execution.
- Failure Alerts -
- Alert Policy:
- Failure - determines the fail criteria of a monitor. By default if a single record was found matched to the configured rule, it will be considered as a failure and the alerts will be triggered.
- Once triggered, execute failure actions only after - after a failure, alerts will be sent again only after a specified number of additional failure without a success between.
- Trigger Alerts:
- Once per execution: By default the monitor executes the alerts on the latest record that was matched per each execution. This is the recommended option - the last event only.
- Each event per execution - the alerts will be triggered on each log record that was matched per each execution (not recommended since the number of records that may be found matched is not limited and the alert will be sent per each one, limited to 100).
- Add new Alert - see details on available Alerts
- Alert Policy:
- Positive Alerts - execute a positive alert as an indication that a specified time has passed since last failure.
- Security - configure security (users/groups) that are associated to the monitor.
- AppTags - select the AppTags that are associated to the monitor.
- Save it. It will run automatically based on the frequency you configured and it is also possible to execute a monitor manually if needed by right clicking it and selecting the execute option or via the console's Actions menu.