Quantcast
Channel: Latest Questions on Splunk Answers
Viewing all articles
Browse latest Browse all 13053

How to pass our command line arguments to script called from Splunk for alert triggered

$
0
0

Hi

I configured an Alert for some search and configured perl script to be called when Alert is triggered. I understand by default Splunk sends some values as command line arguments to script (Ref: http://docs.splunk.com/Documentation/Splunk/5.0/Alert/Configuringscriptedalerts ).

My questions are here: 1. Can I pass my own values (not fixed values) to script as command line argument? The values may be derived from search and hence may change everytime. 2. Is there any limits for passing command line arguments to script from Splunk?

If someone answers with examples helps lot to many splunk users.

Regards Jay


Viewing all articles
Browse latest Browse all 13053

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>