Alerting

Alerts - enrichment

mathewboarman
Explorer

I have a search defined to trigger an alert...

eg
search all failed logins and count by user_name
If the number of failed logins > 5 in time_frame, then trigger alert.

This works fine... I get an alert telling me that the Alert_ has triggered....

But this is not much information... The information content of the alert should at least contain the name of the user who failed to login 5 times.

In general I'm asking for the ability to pass an extracted field from the search into the Alert forwarded to an up-stream system.

Is this possible?

Best regards
Mathew

Tags (1)

jtrucks
Splunk Employee
Splunk Employee

You can do this in two ways:

First, email the alert sending the results of the alert (it's just a setting in the web form).

Second, have the alert run a script on the Splunk server that then parses the results file (the location of which is found in the environment variable SPLUNK_ARG_8 the script (in whatever language) can access). After pull out only the data you want, have the script send mail, run processes, or do whatever else you need to parse it.

Look for more variable info at http://docs.splunk.com/Documentation/Splunk/6.0/Alert/Configuringscriptedalerts

--
Jesse Trucks
Minister of Magic
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Observability Simplified: Combining User Experience, Application Performance & ...

Tech Talk Observability Simplified: Combining User Experience, Application Performance & Network ...

Event Series May & June: From Network Visibility to Service Intelligence

Unifying the Network: Moving from Alert Noise to Service Intelligence with Splunk ITSI In today’s hybrid ...