Create and Manage Custom Alerts
With InsightIDR, you have the option of creating custom alerts when built-in alerts do not suit your needs.
There are three kinds of custom alerts:
You can also specify more granular information in the Custom Alert Details, and manage your custom alerts.
Inactivity Detection Alerts
Also known as "Up Down Monitoring," inactivity alerts can be used to notify you when an entire log, log group, or particular pattern becomes inactive for a given time period.
Inactivity alerting is useful for system assets that must be running constantly (such as a critical server). The ability to set the time window of inactivity gives you control over your data, your environment, and your assets, and allows for damage control and prevention of data loss.
Inactivity alerting behavior
Inactivity alerting will monitor each log individually. For example, if the alert is monitoring a specific event across two logs and the event occurs in the first log but not the second log in the given timeframe, the alert will be triggered for the second log. Once inactivity is detected and one alert is triggered, you will only get a single alert if that pattern or log remains inactive. Activity will need to resume to restart the monitoring.
On the Log Search page, you can create alerts in two different ways:
You can always switch to a different alert type during configuration.
Auto-Populate an Inactivity Detection Alert
To auto-populate an alert:
- From the InsightIDR left menu, select the Log Search page.
- Select the log or log sets you want in the alert, or use a search query to look for a specific set of logs.
- Click Add Alert and choose an alert type based on the selected logs. The “Create Alert” panel appears, with applicable steps already pre-populated.
- Name your alert and optionally add a description. Click Next.
- Set a default priority, this will apply to all investigations generated by this alert.
- In the “Trigger” section, choose a saved query or create a new query using LEQL operators, keywords or regex. To match an exact string using LEQL operators and keywords, place double quotes around your search criteria.
- Click Skip to Alert Notification if you don’t want to create a trigger.
- In the “Alert Notification” section, define how you will receive notifications. Read more about Notification Settings.
- Define a notification throttle to control how long the log or log sets are inactive before receiving an alert, and to control the quantity of alert notifications you will receive. Read more about Alert Throttling.
- Click Create Alert.
Manually Configure an Inactivity Detection Alert
To configure an inactivity alert:
- From the InsightIDR left menu, select the Log Search page.
- Click Add Alert and select Inactivity Detection Alert. The “Create Alert” panel appears, with applicable steps already pre-populated.
- Name your alert and optionally add a description. Click Next.
- Select one or more logs or the log sets you want to use in the alert. Click Next.
- Set a default priority, this will apply to all investigations generated by this alert.
- In the “Trigger” section, choose a saved query or create a new query using LEQL operators, keywords or regex. To match an exact string using LEQL operators and keywords, place double quotes around your search criteria.
- If you do not add a trigger or pattern, the alert will automatically use the logs to detect inactivity.
- In “Trigger Settings,” customize the amount of time a log or pattern must be inactive before it triggers an alert. By default, an inactivity period of five days will trigger an alert. Click Next.
- In the “Alert Notification” section, define how you will receive notifications. Read more about Notification Settings.
- Define a notification throttle to control how long the log or log sets are inactive before receiving an alert, and for the quantity of alert notifications you will receive. Read more about Alert Throttling.
- Click Create Alert.
Pattern Detection Alert
In order for an alert to trigger, a log must match the exact pattern you enter as a search term.
Alerting on patterns can be useful in situations such as monitoring server errors, critical exceptions, and general performance, and allows you to only monitor events that are important to you.
On the Log Search page, you can create Pattern Detection alerts in two different ways:
Auto-Populate a Pattern Detection Alert
To auto-populate an alert:
- From the InsightIDR left menu, select the Log Search page.
- Select the log or log sets you want in the alert, or use a search query to look for a specific set of logs.
- Click Add Alert and choose an alert type based on the selected logs. The “Create Alert” panel appears, with applicable steps already pre-populated.
- Name your alert and optionally add a description. Click Next to set a default priority.
- Set a default priority, this will apply to all investigations generated by this alert.
- In the “Trigger” section, choose a saved query or create a new query using LEQL operators, keywords or regex. To match an exact string using LEQL operators and keywords, place double quotes around your search criteria.
- In the “Alert Notification” section, choose whether you want to apply labels to the pattern or receive alerts from email or other integrations. If you choose the latter, you can define the log information you'd like included. See Notification Settings for more information.
- Define a notification throttle to control how long the log or log sets are inactive before receiving an alert, and to control the number of alert notifications you will receive. Read more about Alert Throttling.
- Click Create Alert.
Manually Create a Pattern Detection Alert
To configure a pattern detection alert:
- From the InsightIDR left menu, select the Log Search page.
- Click Add Alert and select Pattern Detection Alert. The Create Alert panel appears: if you have selected logs, log sets, or defined a query, these fields are pre-populated.
- Name your alert and optionally add a description. Click Next.
- Select one or more logs or the log sets you want to use in the alert. Click Next.
- Set a default priority, this will apply to all investigations generated by this alert.
- In the “Trigger” section, choose a saved query or create a new query using LEQL operators, keywords or regex. To match an exact string using LEQL operators and keywords, place double quotes around your search criteria.
- In the “Alert Notification” section, choose whether you want to apply labels to the pattern or receive alerts from email or other integrations. If you choose the latter, you can define the log information you'd like included. See Notification Settings for more information.
- Under the “Notification” tab choose which notification trigger setting you want. You will not receive alerts outside of this specific alert.
- Define a notification throttle to control how long the log or log sets are inactive before receiving an alert, and for the number of alert notifications you will receive. Read more about Alert Throttling.
- Click Create Alert.
Change Detection Alert
Change detection alerts will notify you when a condition changes, such as HTTP 500 errors in your web access logs. They are based off of calculations that you apply to log(s) or logset(s).
Change detections will help you stay on top of critical conditions when something is broken and must be immediately addressed, or occurring errors that must be escalated. This alert will minimize your time to investigate and resolve any errors.
On the Log Search page, you can create alerts in two different ways:
Auto-Populate a Change Detection Alert
To auto-populate an alert:
- From the InsightIDR left menu, select the Log Search page.
- Select the log or log sets you want in the alert, or use a search query to look for a specific set of logs.
- Click Add Alert and choose an alert type based on the selected logs. The “Create Alert” panel appears, with applicable steps already pre-populated.
- Name your alert and optionally add a description. Click Next.
- Set a default priority, this will apply to all investigations generated by this alert.
- In the “Trigger” section, choose a saved query or create a new query using LEQL operators, keywords or regex. To match an exact string using LEQL operators and keywords, place double quotes around your search criteria.
- Choose a calculation. New queries require that you specify a calculation to use, adding a key to apply the calculation is optional. Any changes of the key based off of the calculation will trigger an alert.
- In the “Alert Notification” section, define how you will receive notifications. Read more about Notification Settings.
- Define a notification throttle to control how many alerts you receive in a specific window of time.
- Click Create Alert.
Manually Configure a Change Detection Alert
To configure a change detection alert:
- From the InsightIDR left menu, select the Log Search page.
- Select the Add Alert button, and click Change Detection Alert.
- Name your alert and optionally add a description. Click Next.
- In the Logs section, select one or more logs or the log sets you want to use in the alert.
- Set a default priority, this will apply to all investigations generated by this alert.
- In the “Trigger” section, choose a saved query or create a new query using LEQL operators, keywords or regex. To match an exact string using LEQL operators and keywords, place double quotes around your search criteria.
- Choose a calculation. New queries require that you specify a calculation to use, adding a key to apply the calculation is optional. Any changes of the key based off of the calculation will trigger an alert.
- Optionally customize the notification settings to define how severe the change is before triggering an alert.
- In the “Alert Notification” section, define how you will receive notifications. Read more about Notification Settings.
- Define a notification throttle to control how many alerts you receive in a specific window of time.
- Click Create Alert.
Manage Custom Alerts
To edit existing custom alerts:
- From the InsightIDR left menu, select Detection Rules > Custom alerts.
- On the right of an alert, click the Pencil icon to edit the alert.
- If applicable, select the check box to enable the alert.
To delete existing custom alerts:
- From the InsightIDR left menu, select Detection Rules > Custom alerts.
- Select the alert.
- Click the Trashcan icon to delete the alert.
To bulk action existing custom alerts:
- From the InsightIDR left menu, select Detection Rules > Custom alerts.
- Select the all checkbox, at the top of the alert table.
- Select a Radio button to choose a bulk action to all of the custom alerts, and then click Apply.