Executing CLI commands without password

Path Finder

We are currently creating a Disaster Recovery guide for our Splunk installation that must contain all steps necessary to fail over splunk in our environment. One task is to roll all hot buckets to warm. Obviously we need to be "logged in" on the CLI before we can execute this step. The problem is that we need to use a username and password that exists in splunk to get this done and we would have to add that username and password to the DR guide as well to make sure in case of a disaster anyone with basic system knowledge would be able to execute the steps.

What is the best way to do this?

  • Can we disable the password functionality on the CLI?
  • should we put the admin users credentials into the DR guide?
0 Karma

Splunk Employee
Splunk Employee

No you can not disable this functionality. It's up to you where you document admin passwords required for DR, but I would imagine that Splunk passwords are not the only ones needed. Another thing you could do it provide steps to reset the default admin password by replacing the etc/passwd file.

0 Karma
Get Updates on the Splunk Community!

What is the use drop_dm_object_name() clause in a query with tstats.?

I am trying to find out what purpose drop_dm_object_name() serves.

Advisory ID: SVD-2022-0608

Hi,Security alert: Splunk Universal Forwarder.Is this a customer installable upgrade (to version 9), or do I ...

How to use Timechart Query

Hey guys ,I need last 30 days stats for the use-cases that did not fire up on the ES console. Below is the ...