In some cases there may be a need to automate or program the retrieval of the Splunk Cloud Universal Forwarder credentials package ( splunkclouduf.spl )
To investigate or understand the possibilites behind this request, we look in to the web.conf specification:
[expose:<unique_name>]
* Registers a splunkd-based endpoint that should be made available to the UI
under the "/splunkd" and "/splunkd/__raw" hierarchies.
* The name of the stanza does not matter as long as it begins with "expose:"
* Each stanza name must be unique
And then for the "Universal Forwarder" or splunkclouduf App;
Example:
[expose:uf-config]
pattern = uf-config/*
methods = GET
With the above investigative research or info, one can then complete the following cURL string;
curl -k -u test-sc_admin https://test-stack-name.splunkcloud.com:8089/servicesNS/nobody/splunkclouduf/uf-config/splunkclouduf.spl
-o splunkclouduf.spl
test-sc_admin is an " sc_admin" local user, for which you get prompted for passwd
-o splunkclouduf.spl download to current pwd. ( present working dir )
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
29-Sep-2026
|
Initial Release |