Creating a New Alert
Alerts are constructed by using queries that finds events you want to be alerted, that returns results about which you want to be notified or have some other action taken.
Go to the Repository and Views page.
Select a Repository or View.
Click the Alerts tab on the top bar of the User Interface
Figure 160. Creating Alert from Tab
In the New alertdialog popping up, enter a name for the alert and choose how to create the alert:
Empty alert to create a new empty alert from scratch
From template to browse for or drag and drop a template based on an existing alert
From package to invoke alert templates that are part of a Humio package
Provide the information required in the New alert page:
General— you may change the name and enter a description that says more specifically what causes the alert to be triggered, or you can disable the alert, see Disabling an Alert.
Query — Type the query that generates the alert, and specify a time window for the query.
Actions — you may want to add an action for Humio to take when the alert is triggered, if you have one that's suitable for this alert. See more information at Actions. Or, you can skip it and add the action later.
Throttling — choose the throttling period for this alert. Learn more on throttling at Setting Alert Throttle Periods.
Figure 161. Setting Alert Properties
When you're done setting the properties for the new alert, click.
You can also convert a query you've just typed to a new alert, this way:
Go to the Search tab on the top bar of the User Interface.
Type the query you need for your alert.
In the example query shown in Figure 162, “Creating Alert from Query” we're searching for events in which the web server recorded a log level equal to
Notice that the time period for the query is set to a live, continuous data range — not static data. You don't need a query to alert you to something that already happened when you created the alert. You generally need to be alerted about events that happen afterwards.
Clicknear the top right and choose the option.
Provide the information required in the Save as alert page, which is similar to the one for alerts created from the Alertstab, see Figure 161, “Setting Alert Properties”.
When you've finished setting the properties for the new alert, click.
Figure 162. Creating Alert from Query