March 2018
Beginner to intermediate
576 pages
13h 29m
English
Another option to interface with an external system is to run a custom alert action using the results of a saved search. Splunk provides a simple example in $SPLUNK_HOME/bin/scripts/echo.sh. Let's try it out and see what we get using the following steps:
index=_internal | head 100 | stats count by sourcetype

The script places the output into $SPLUNK_HOME/bin/scripts/echo_output.txt ...
Read now
Unlock full access