Admin Manual

 


How Splunk Works

Set up alerts via Splunk Web

This documentation does not apply to the most recent version of Splunk. Click here for the latest version.

Set up alerts via Splunk Web

An alert is comprised of


Specify that an alert be sent via email or RSS, or trigger a shell script. You can turn any saved search into an alert.


Set up an alert at the time you create a saved search, or you can enable an alert on any existing saved search you have permission to edit.


Note: You must have sendmail enabled on your Splunk Server for alerts to be sent out.


View alert history

The alert history page shows which alerts have been triggered since Splunk's last reboot. To access, click the Admin link in the upper right hand corner and select the Saved Searches tab. Your alerts show up in the Alert History column.


Set up an alert

Note: In 3.3, schedule and alerts are done in the Save Search > Schedule and Alert tab.


Schedule

To set up an alert, check the box run this search on a schedule. Choose either basic or cron scheduling.


File:3 2Admin setupalerts-Picture 1.png


Splunk supports most standard cron notation. For example:


File:3 2Admin setupalerts-Picture 2.png


Note: Too many searches running every minute or less can slow down the server.


Time ranges in search

To get all the results from a set window of time, you may include a specific time range in your search, for example hoursago=1. Especially in distributed setups, data may not reach the indexer exactly when it is generated. Thus, it is a good idea to run your searches with a few minutes of delay.


For example, you want all the results from an hour time window, such as 4 PM to 5 PM.


This ensures that you get all the results from the specified time period.


Output

Choose from the drop downs to specify rules for sending output.


File:3 2Admin setupalerts-Picture 3.png


File:3 2Admin setupalerts-Picture 4.png


Set up an alert on an existing saved search

Specify which fields to show

When you receive alerts, any fields included in your search are also be displayed. Edit the saved search to change which fields are displayed in your alert.


To eliminate a field, pipe your search to fields - $FIELDNAME. To add a field, pipe your search to fields + $FIELDNAME. You can add or subtract any number of fields -- just separate them with a comma: fields - $FIELD1, $FIELD2 + $FIELD3, $FIELD4.


For example:


GenericJDBCException starthoursago::01 | fields - sourcetype

This search will keep the sourcetype field from appearing in your alerts.

This documentation applies to the following versions of Splunk: 3.2 , 3.2.1 , 3.2.2 , 3.2.3 , 3.2.4 , 3.2.5 , 3.2.6 View the Article History for its revisions.


You must be logged into splunk.com in order to post comments. Log in now.

Was this documentation topic helpful?

If you'd like to hear back from us, please provide your email address:

We'd love to hear what you think about this topic or the documentation as a whole. Feedback you enter here will be delivered to the documentation team.

Feedback submitted, thanks!