Getting Data In

CLI: Linux vs. Windows

NK_1
Path Finder

Using the CLI, if I do

splunk search hoursago=1

I see output under a Linux Splunk installation, but not under a Windows Splunk installation.

Where does the output from the Windows installation go?

Tags (4)
1 Solution

gekoner
Communicator

I assume you are running Splunk 4.2.2 or higher and this is on a Windows 2008 server. You will need to run the command prompt with elevated privileges (Run as administrator). Then it should echo out to the same command screen.
If you don't it opens a new window, and if the results return quickly you might not even see the new command window popup.

View solution in original post

gekoner
Communicator

I assume you are running Splunk 4.2.2 or higher and this is on a Windows 2008 server. You will need to run the command prompt with elevated privileges (Run as administrator). Then it should echo out to the same command screen.
If you don't it opens a new window, and if the results return quickly you might not even see the new command window popup.

echalex
Builder

Thank you for the answer, gekoner. I hade the same kind of problem under Windows 7. Any splunk command, such as splunk status would only quickly flicker another terminal window. Opening cmd with "run as administrator" solved this issue.

0 Karma

NK_1
Path Finder

splunk search "daysago=1 AccountName" > c:\accounts.log

Tried this on Splunk 4.2.3 under Windows 7 Enterprise, and that was it (i.e. need to run the command shell as Admin). Thanks!

0 Karma
Get Updates on the Splunk Community!

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...