Does Splunk offer any such solution to make a call to SOAP-REST-HTTP URL and to test their availability?
I'm assuming you want the ability to consume logs, set a Splunk alert on a keyword, then send a SOAP call to verify the web service is good if that alert fires?
You could always create a script to fire on that alert which will do a cURL and send that web service call. If I'm correct then I can help you set this up
http://docs.splunk.com/Documentation/Splunk/6.1.1/RESTAPI/RESTinput#receivers.2Fsimple
Website monitoring (not an official Splunk app) does http testing, you could always enhance it to perform other kinds of connections if required...
The REST API modular input app, also not an official Splunk app can perform REST calls to retrieve data so this might also be relevant if you are looking for something pre-built...
I'm assuming you want the ability to consume logs, set a Splunk alert on a keyword, then send a SOAP call to verify the web service is good if that alert fires?
You could always create a script to fire on that alert which will do a cURL and send that web service call. If I'm correct then I can help you set this up
http://docs.splunk.com/Documentation/Splunk/6.1.1/RESTAPI/RESTinput#receivers.2Fsimple
Link in solution is not opening.
Can you share an example script to check if SOAP URL is up and running?
I checked with Web URL monitoring for SOAP URL but it gives an error as 'page not found'. The same SOAP URL is working from SOAP UI. The SOAP URL , i want to use , it needs user id, password and few more fields to call the URL from SOAP UI.
Please help
Hi,
Can you share an example script to check if SOAP URL is up and running?
I checked with Web URL monitoring for SOAP URL but it gives an error as 'page not found'. The same SOAP URL is working from SOAP UI. The SOAP URL , i want to use , it needs user id, password and few more fields to call the URL from SOAP UI.
Please help
yeah, you got it. please guide me to set up that, that would be really helpful. We are using enterprise splunk.
Sure, this weekend I will give you a working example and help implement it
Assuming your running a single indexer on a Linux server, you will first create a an XML file and will reference this in your script. So for example, you have an XML file called request.xml
and place it under /opt/websvc/requests
. You will then create a script which will look like this (below), we will call it websvc_call.sh
cd /opt/websvc/requests
curl -X POST -H "Content-Type: text/xml" -H --data-binary @request.xml http://xxx.xx.xx.xxx/YOUR/ENDPOINT.svc
You will save this script to SPLUNK_HOME/bin/scripts/websvc_call.sh
You will then go into the Splunk UI, find the text you want to alert on, save as an alert, then Trigger Actions
, select Execute a Script
and enter the script name and save. This will send a web service call if text appears.. If you want to go further, you could have it respond back and have Splunk consume it and provide you with an alert or dashboard
Think you need to clarify what you mean by 'SOAP-REST-HTTP' as you've just named three different protocols. Are you asking how to test if splunk is running on a machine?
SOAP-REST-HTTP - I meant test application/service via SOAP or REST endpoint or via httpclient. Can we script and schedule search/alert with in splunk.