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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...