A quick search on http://answers.splunk.com shows the question comes up 
regularly, so have a look at the following to see if they point you in the 
right direction:

http://answers.splunk.com/search/?q=alert+script+parameter&Submit=Search
http://answers.splunk.com/answers/749/how-do-i-pass-event-arguments-to-scripts-run-in-response-to-splunk-alerts
http://answers.splunk.com/answers/3019/scripted-alert-question
http://answers.splunk.com/answers/40843/alerting-send-ipuser-to-script-as-a-parameter
http://answers.splunk.com/answers/88934/pass-variable-to-a-scripted-alert


From: Action Request System discussion list(ARSList) 
[mailto:[email protected]] On Behalf Of Sachin Verma
Sent: Monday, 21 October 2013 5:40 PM
To: [email protected]
Subject: Re: Splunk - Remedy Integration

**
Thanks Vikrant, actually I am looking for the solution: how to pass the alert 
values generated from Splunk to the batch file. How to dynamically set those at 
Splunk while calling the batch file?

Regards,
Sachin

From: Action Request System discussion list(ARSList) 
[mailto:[email protected]]<mailto:[mailto:[email protected]]> On Behalf Of 
Vikrant Kulkarni
Sent: Monday, October 21, 2013 12:52 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: Splunk - Remedy Integration

**

Hi,

The batch file can take command line parameters which can be set via splunk 
dynamically. The batch file can send the input parameters for the Java code 
calling web service.
This is a solution at a very layman's terms.

Hope it helps you.

Vikrant
On 21-Oct-2013 12:48 PM, "Sachin Verma" 
<[email protected]<mailto:[email protected]>> wrote:
**
Hi,

The issue is related to integrate Splunk with ARS7.6.04. Splunk is implemented 
to monitor some network devices and generate an alert if there is any issue. We 
have:

-the java program ready with in-turn able to consume remedy web-services to 
create an incident in remedy.
-We have also created a batch file which embedded the commands to execute this 
java script.
-this batch file is successfully called up from Splunk alert as 'Run as Script 
option' using the static/hardcoded values as input parameters to batch file.

Now the issue is: how to to pass/push each splunk alert information 
(dynamically) to the batch file as input parameters to create an incident for 
real alert generated?

Splunk -> Call Batch file by passing static input values (need a solution for 
dynamic splunk alert values)->execute java script to consume remedy 
web-services to create an incident.

Regards,
Sachin

________________________________
This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise confidential information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited.

Where allowed by local law, electronic communications with Accenture and its 
affiliates, including e-mail and instant messaging (including content), may be 
scanned by our systems for the purposes of information security and assessment 
of internal compliance with Accenture policy.

______________________________________________________________________________________

www.accenture.com<http://www.accenture.com>
_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_
_ARSlist: "Where the Answers Are" and have been for 20 years_

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
"Where the Answers Are, and have been for 20 years"

Reply via email to