Security

prompt for admin user name "Your session is invalid. Please login" How to avoid that?

sim_tcr
Communicator

Hello,

When certain splunk administration commands are executed (eg, offline) sometimes on some servers i get promt for admin user name with message "Your session is invalid. Please login" . Is there any way to avoid that. I do not want to pass user name and password on the command itself.

Any way to increase the timout session on servers to infinite?

Thanks,
Simon Mandy

Tags (1)
0 Karma

gchauhan
Engager

try to use admin credentials of the GUI admin credentials in there hope it helps @sim_tcr 

0 Karma

jeffland
SplunkTrust
SplunkTrust

Taken from Genti's answer here, you could export the username and password to a local user's variable and use that variable from your command.

0 Karma

woodcock
Esteemed Legend

Obviously you are talking about CLI.

0 Karma

sim_tcr
Communicator

yes. 'splunk offline'

0 Karma
Get Updates on the Splunk Community!

.conf25 Registration is OPEN!

Ready. Set. Splunk! Your favorite Splunk user event is back and better than ever. Get ready for more technical ...

Detecting Cross-Channel Fraud with Splunk

This article is the final installment in our three-part series exploring fraud detection techniques using ...

Splunk at Cisco Live 2025: Learning, Innovation, and a Little Bit of Mr. Brightside

Pack your bags (and maybe your dancing shoes)—Cisco Live is heading to San Diego, June 8–12, 2025, and Splunk ...