Alerting

adding values to alert-scripts

0range
Communicator

Hello everyone!
How can I add search-result to my .sh-script sending email from Splunk-alert?
Thank you!

0 Karma
1 Solution

alacercogitatus
SplunkTrust
SplunkTrust

I think you are executing a Shell Script from a Splunk Alert, and you want to get the search results into that Shell script. The arguments are passed to the script, so you should be able to reference them in the usual ways. See here for a more complete description: http://wiki.splunk.com/Community:Use_Splunk_alerts_with_scripts_to_create_a_ticket_in_your_ticketing...

View solution in original post

alacercogitatus
SplunkTrust
SplunkTrust

I think you are executing a Shell Script from a Splunk Alert, and you want to get the search results into that Shell script. The arguments are passed to the script, so you should be able to reference them in the usual ways. See here for a more complete description: http://wiki.splunk.com/Community:Use_Splunk_alerts_with_scripts_to_create_a_ticket_in_your_ticketing...

lukejadamec
Super Champion

Your Splunk-alert is saved in Manager>Searches and Reports.

Open it, select the email option, and select Include results in email.

0 Karma

0range
Communicator

and if I run my own script? stock alerting is not enough...

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...