Getting Data In

Access Splunk Universal Forwarder with Splunk CLI without Login?

peter_krammer
Communicator

What?
Is it possible to access a universal forwarder with the splunk client (/opt/splunk/bin/splunk) without supplying a username or password.

For example we would like to issue the following command:

/opt/splunk/bin/splunk display app -uri https:// SERVER :8089

I think this must somewho be possible to use the authentication token of the deployment server, because the deployment server is able to push apps out to the forwarders, so it has to have some way to access the forwarders.

Why?
We cannot easily connect to a shell on every server in our environment. Additionally if we would keep the password of the admin user on default, splunk does not allow us to connect. We don't want to set the same password on every server so we usually let the team who sets up our servers set a random password.

0 Karma
1 Solution

Jon_Webster
Splunk Employee
Splunk Employee

Some commands require auth, and some don't. Those that do may let you use a Splunk non-admin account, which might be a good way to setup a global login that has no capabilities on the Splunk server, but let's you query the Forwarders.

"splunk display app" doesn't require authorization as far as I can tell on my system. Perhaps it's different when running remotely.

FYI: The Deployment Server does not authenticate to the Forwarders. The Forwarders connect to the Deployment Server to request updates.

View solution in original post

Jon_Webster
Splunk Employee
Splunk Employee

Some commands require auth, and some don't. Those that do may let you use a Splunk non-admin account, which might be a good way to setup a global login that has no capabilities on the Splunk server, but let's you query the Forwarders.

"splunk display app" doesn't require authorization as far as I can tell on my system. Perhaps it's different when running remotely.

FYI: The Deployment Server does not authenticate to the Forwarders. The Forwarders connect to the Deployment Server to request updates.

peter_krammer
Communicator

When issued to a remote server the "splunk display app" does require authentication in our system.
And as far as I know, the deploymentserver is able push out apps to the forwarder. but maybe he can just tell the forwarder it has to connect back to the deploymentserver and get its apps.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Modernize your Splunk Apps – Introducing Python 3.13 in Splunk

We are excited to announce that the upcoming releases of Splunk Enterprise 10.2.x and Splunk Cloud Platform ...

Step into “Hunt the Insider: An Splunk ES Premier Mystery” to catch a cybercriminal ...

After a whole week of being on call, you fell asleep on your keyboard, and you hit a sequence of buttons that ...

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2026-2027 SplunkTrust is officially open. If ...