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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...