Splunk Search

Run "splunk test" in Windows command line

myli12
Path Finder

I used windows version Splunk 4.3. I was trying to run the following line command in window shell:

splunk test sourcetype

It popped out a 2nd window with the results. Before I could read the outputs, the 2nd window quickly closed up.

I also tried to redirect the outputs to a file "splunk test sourcetype ... > tmp.txt", however, the 2nd window still popped up with the results output onto the 2nd window, and quickly closed up. The tmp.txt was generated with ZERO byte.

Any suggestion how I can either hold the 2nd window (with the results) or redirect the outputs so I can read these debug results. Thanks.

Tags (2)
1 Solution

myli12
Path Finder

Thanks to Genti from Splunk support.
I copied his answer here and it works.


Thanks for creating this case with support.
So you know, this is a windows issue, where windows is opening a second window on you.
In order to stop this from happening, run the command line as administrator, and you should be
good to go.
Best,
Genti


In order to run the command line as administrator,

click the Start button,
type cmd in the Instant Search field,

and press CTRL + SHIFT + ENTER instead of just ENTER.

View solution in original post

myli12
Path Finder

Thanks to Genti from Splunk support.
I copied his answer here and it works.


Thanks for creating this case with support.
So you know, this is a windows issue, where windows is opening a second window on you.
In order to stop this from happening, run the command line as administrator, and you should be
good to go.
Best,
Genti


In order to run the command line as administrator,

click the Start button,
type cmd in the Instant Search field,

and press CTRL + SHIFT + ENTER instead of just ENTER.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

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 ...