- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How can I convert REST API curl command using javascript SDK?
abhishekdharga
Engager
02-01-2018
10:29 AM
curl -u admin:pass https://localhost:8089/servicesNS/nobody/search/data/inputs/script -d name=/Applications/splunk4.3/etc/apps/myApp/bin/myScript.sh -d disabled=true -d interval=3600
How can I convert the above REST API curl command using javascript SDK?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

rvany
Communicator
02-23-2018
06:43 AM
Have a look here Can REST API be used to execute a python script on Splunk server?. Maybe that helps.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
abhishekdharga
Engager
02-23-2018
05:36 AM
We want to use this on splunk dashboard page once user click on submit button.
So actually splunk dashboard in the app uses javascript.
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

rvany
Communicator
02-23-2018
05:26 AM
You want to transfer this command into a JavaScript command? Or transfer it to something else using JavaScript commands?
