Splunk Search

How to construct URL

pratapa
Explorer

How to construct the URL from the following curl command

/usr/bin/curl -s -k -u user1:passwd https://splunk.ce.corp:8089/servicesNS/monitor/wms/search/jobs/export -d "search=savedsearch %22WMOS%20%2d%20EW%20%2d%20Number%20of%20Allocation%20records%22" -d "output_mode=csv"

Any idea?

Tags (2)
0 Karma

richgalloway
SplunkTrust
SplunkTrust

You have the URL in the curl command: https://splunk.ce.corp:8089/servicesNS/monitor/wms/search/jobs/export. The remaining text are data passed as part of the POST request.

You may find the REST User Manual useful. https://docs.splunk.com/Documentation/Splunk/7.3.3/RESTUM/RESTusing

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk Security Content for Threat Detection & Response, Q1 Roundup

Join Principal Threat Researcher, Michael Haag, as he walks through:An introduction to the Splunk Threat ...

Splunk Life | Happy Pride Month!

Happy Pride Month, Splunk Community! 🌈 In the United States, as well as many countries around the ...

SplunkTrust | Where Are They Now - Michael Uschmann

The Background Five years ago, Splunk published several videos showcasing members of the SplunkTrust to share ...