Security

CLI "login failed" error on DS

cnuguri_ncc
Path Finder

Hello all,

Configured custom ssl certificates on Deployment Server (both splunkd and splunk web), and deployment clients are connecting to DS fine on this setup.

But, command line login started failing after this while running any commands on DS, Need help in resolving this please ? (we have requireClientCert=false).

Thanks in Advance
Chetu

Labels (2)
0 Karma
1 Solution

codebuilder
Influencer

Did you cycle Splunk after enabling web SSL? How are you running Splunk? As root, or another user?

----
An upvote would be appreciated and Accept Solution if it helps!

View solution in original post

0 Karma

codebuilder
Influencer

Did you cycle Splunk after enabling web SSL? How are you running Splunk? As root, or another user?

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

cnuguri_ncc
Path Finder

Thanks @codebuilder 


Not exactly sure how, but it started working. I can only think the restart (although a few times) must have fixed this.

 

0 Karma

cnuguri_ncc
Path Finder

Yes, restarted a few times.
Splunk is running as "Local System" on Windows.

0 Karma

codebuilder
Influencer

What is the full command you are running? Also, have you looked at the the _audit index for any messages related to why the auth is not successful?

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

codebuilder
Influencer

It's asking for the Splunk admin account password that you would have created when installing Splunk. You can reset it via the web UI if you have access, or you can reset it with the user-seed.conf method.

https://community.splunk.com/t5/Security/How-to-Reset-the-Admin-password/m-p/10622

----
An upvote would be appreciated and Accept Solution if it helps!
0 Karma

cnuguri_ncc
Path Finder

@codebuilder Sorry for not being clear enough,  It fails when I enter the admin login details. The same username and password works with Splunk web though ( this is the admin account created at installation ).

And this started after I have setup SSL for splunkd port so wondering if that is affecting the CLI authentication ? Is there a way to setup cert authentication for CLI ?

Thanks
Chetu

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...