I'm trying to debug some issues with the deployment server. This causes me to want to run things like 'splunk display deploy-client' on the forwarder, but when I do so it asks for credentials:
[root@frwrdr ~]# splunk display deploy-client
Splunk username:
I do not know what credentials it will accept. If I do this on the indexer/search head, then my normal Splunk credentials (which are backed by LDAP authentication) work. However, that is not the case on the forwarder host. Nor do my local credentials on the forwarder host work.
What should I be doing here? Setting a password for the local 'splunk' user and using that?
The forwarder has the same credentials by default as the indexer does. The default l/p is admin/changeme. You should use that account, but change the password from the default.
$SPLUNK_HOME/bin/splunk set deploy-poll :8089 -auth admin:changeme
No users exist. Please set up a user.,
So what you need to do is specify the password, but not the user. Simply do:
/opt/splunkforwarder/bin/splunk set deployment-poll HOSTNAME:8089 -auth :changeme
/opt/splunkforwarder/bin/splunk display deploy-client -auth :changeme
The default credentials are admin:changeme, so use those until you set it, which you can do with
/opt/splunkforwarder/bin/splunk edit user admin -password YOUR_NEW_PASSWORD -auth admin:changeme
The forwarder has the same credentials by default as the indexer does. The default l/p is admin/changeme. You should use that account, but change the password from the default.
Glad I could help out. Please feel free to upvote if you found this useful.
I'm getting error while using admin/changeme combination as well. Any guesses?
Excellent, the admin user works. I suppose it shouldn't be surprising that LDAP users won't chain out to forwarders. Thanks!