I don't think you could send user and pass for the login
command. As alternative you could use a search
to login and create the session:
./splunk search 'index=_internal | fields _time | head 1 ' -auth 'admin:password'
After that you have your session and don't have to send user/pass anymore.
Cheers
I don't think you could send user and pass for the login
command. As alternative you could use a search
to login and create the session:
./splunk search 'index=_internal | fields _time | head 1 ' -auth 'admin:password'
After that you have your session and don't have to send user/pass anymore.
Cheers