Getting Data In

How can I convert REST API curl command using javascript SDK?

abhishekdharga
Engager
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?

0 Karma

rvany
Communicator
0 Karma

abhishekdharga
Engager

We want to use this on splunk dashboard page once user click on submit button.
So actually splunk dashboard in the app uses javascript.

0 Karma

rvany
Communicator

You want to transfer this command into a JavaScript command? Or transfer it to something else using JavaScript commands?

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...