Other Usage

how to capture the search results from splunk into shell script?

florapann
Engager

i would like to get below values from splunk into shell script . i am creating alert for below values and using webhook to invoke a shell script. 

florapann_1-1638442092126.png

i am using below webhooklink to trigger the script 

florapann_2-1638442207191.png

florapann_3-1638442261250.png

but i don't know how to get those splunk search results into shell script? can someone help to suggest me which command/code has to used to capture the value form splunk ?

Labels (1)
0 Karma

Gr0und_Z3r0
Contributor
0 Karma
Get Updates on the Splunk Community!

Exciting News: The AppDynamics Community Joins Splunk!

Hello Splunkers,   I’d like to introduce myself—I’m Ryan, the former AppDynamics Community Manager, and I’m ...

The All New Performance Insights for Splunk

Splunk gives you amazing tools to analyze system data and make business-critical decisions, react to issues, ...

Good Sourcetype Naming

When it comes to getting data in, one of the earliest decisions made is what to use as a sourcetype. Often, ...