All Apps and Add-ons

Running splunk command returns no output

gekoner
Communicator

V4.1.6 - When running a batch command 'splunk list forwarder-server' as the splunk service, which is running as LocalSystem.
No error are returned, it just doesn't output anything either to the screen or to a file, unless I run the batch as a users with an interactive session.
Other splunk commands run without issue.

Does anyone have a good work around for this?

0 Karma
1 Solution

gekoner
Communicator

This command is not supported from a non-interactive session. You must be logged in as a user to run this command. if I was running my LFC as a user account in the Windows Service this would work. But since Splunk is running as Local System, it doesn't produce any output. This is a security "feature", but the funny thing is other Splunk commands are allowed, so I'm not sure why this and other outputs are not allowed.

View solution in original post

0 Karma

gekoner
Communicator

This command is not supported from a non-interactive session. You must be logged in as a user to run this command. if I was running my LFC as a user account in the Windows Service this would work. But since Splunk is running as Local System, it doesn't produce any output. This is a security "feature", but the funny thing is other Splunk commands are allowed, so I'm not sure why this and other outputs are not allowed.

0 Karma

MBerikcurtis
Path Finder

using netstat from a command prompt, do you see the forwarder ports open? default is 9997.

0 Karma

gekoner
Communicator

I see the LFC communicating to the Indexer on 9997 (Foreign Address). I don't see the client listing on 9997 (Local Address). If you thought the issue was that the client isn't communicating to the indexer, that isn't my issue. See my post. It is just this command not producing output, not locally to a file or ECHO to the screen.

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...