Splunk Search

Login in MS-DOS

aymericbrun
Explorer

Hi,

How can i login into MS-DOS to make a search ?

I wrote in a DOS window:

splunk.exe search 'host="..."' -maxout 100 > test

and it returns Login failed - Unauthorized

However, i'm connected in Firefox and i use Splunk in it.

Thank you very much

Tags (3)
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi aymericbrun

running the cli in DOS prompt, you have to login via cli in DOS prompt at least once. this will help http://www.splunk.com/base/Documentation/latest/Admin/CLIadmincommands

your login in firefox has no effect on the cli login in DOS, because firefox uses other authentication methods then the cli.

regards

View solution in original post

0 Karma

aymericbrun
Explorer

Thank you, i find what i expected !

In the DOS windows, i just wrote :

c:\Splunk\bin>splunk.exe login

Regards

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi aymericbrun

running the cli in DOS prompt, you have to login via cli in DOS prompt at least once. this will help http://www.splunk.com/base/Documentation/latest/Admin/CLIadmincommands

your login in firefox has no effect on the cli login in DOS, because firefox uses other authentication methods then the cli.

regards

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...