A short bash script for backing up the Splunk KV store via API
KV_USER
: Accountname of a splunk user with following capabilities:
- edit_server
- list_settings
- run_collect
- run_mcollect
- list_settings
PW
: Splunk secret used by the KV_USER accountSPLUNK_URL
: The URL of your SPLUNK serverKV_PORT
: The port of your KV store, default set by Splunk is 8089