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!

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

❄️ Celebrate the season with our December lineup of Community Office Hours, Tech Talks, and Webinars! ...

Splunk and Fraud

Watch Now!Watch an insightful webinar where we delve into the innovative approaches to solving fraud using the ...

Continuing Innovation & New Integrations Unlock Full Stack Observability For Your ...

You’ve probably heard the latest about AppDynamics joining the Splunk Observability portfolio, deepening our ...