
Specify alert fields
Specify fields to show in alerts through search language
The results of an alerting search job (in an alert email, for example) includes all the fields in those results. To include or exclude specific fields from the results, use the fields
command in the base search for the alert.
- To eliminate a field from the search results, pipe your search to
fields - $FIELDNAME
. - To add a field to the search results, pipe your search to
fields + $FIELDNAME
.
You can specify multiple fields in one string. The following search generates an alert that excludes $FIELD1
and $FIELD2
, but includes $FIELD3
and $FIELD4
.
yoursearch | fields - $FIELD1,$FIELD2 + $FIELD3,$FIELD4
PREVIOUS Update and expand alert functionality |
NEXT Alerts page |
This documentation applies to the following versions of Splunk® Enterprise: 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.3.4, 6.3.5, 6.3.6, 6.3.7, 6.3.8, 6.3.9, 6.3.10, 6.3.11, 6.3.12, 6.3.13, 6.3.14
Feedback submitted, thanks!