Splunk Search

A loop to mail individual events to different addresses

decoherence
Explorer

I have a simple search similar to this

host=ccirc.example.com | table email malware | sort email | uniq

which gives me results like this

freddy@example.com zeroconf
jimbob@example.com conficker
jamesdean@example.com citadel
marthastewart@example.com zeus

Is it possible for me to iterate through each line and send a boilerplate email to the address in the fist field, basically saying "you are infected with $virus"?

I should also note that the source file for this search is generated by a script once a day, so you don't see individual lines coming in 'real time.'

Any insights are much appreciated!

Tags (1)
0 Karma
1 Solution

yannK
Splunk Employee
Splunk Employee

This functionality doesn't exist.
But you can create your own scripted alert that will create the emails after parsing the results.

see http://docs.splunk.com/Documentation/Splunk/6.0/Alert/Configuringscriptedalerts

View solution in original post

yannK
Splunk Employee
Splunk Employee

by the way nice reference to the quantic transient state.
http://en.wikipedia.org/wiki/Quantum_decoherence

0 Karma

yannK
Splunk Employee
Splunk Employee

This functionality doesn't exist.
But you can create your own scripted alert that will create the emails after parsing the results.

see http://docs.splunk.com/Documentation/Splunk/6.0/Alert/Configuringscriptedalerts

decoherence
Explorer

Thanks for pointing me in the right direction!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...