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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...