I'm trying to configure a splunkforwarder so it is pointed at my deployment server
When I run the following command, I get this error:
set deploy-poll deploymentserver:8089 ./splunk set deploy-poll deploymentserver:8089 splunk: /home/build/build-src/6.2.1/src/launcher/restcall.c:545: make_simple_rest_call_online: Assertion `tresult.token != ((void *)0)' failed. Aborted
Any clue what causes this or what I should look at?
try removing ~/.splunk/authToken[yourhost]_[yourport], worked for me.
I saw this error for the first time today. It seems to be a new thing with splunk 6.x. Any comments from Splunk engineers about what gives with this?
here is the exact call I try:
# bin/splunk list monitor splunk: /home/build/build-src/6.2.0/src/launcher/restcall.c:545: make_simple_rest_call_online: Assertion `tresult.token != ((void *)0)' failed. Aborted
How about using the configuration files and restarting the Splunk forwarder?
/opt/splunkforwarder/etc/system/local/deploymentclient.conf [target-broker:deploymentServer] targetUri = IPAddressOfYourServerHere:8089
Also, check if you can ping deployment server from your forwarder server.
I added that conf file and restarted splunk there aren't any errors messages showing in the splunkd log but It's also still not checking in to my deployment server.
I already verified the deployment server is setup and 8089 is open.
Strange error. Did you already start Splunk? Also, maybe try putting quotation marks around the deployment server and adding your authentication info?
/opt/splunkforwarder/bin/splunk start --accept-license --answer-yes
/opt/splunkforwarder/bin/splunk set deploy-poll "deploymentserver:8089" -auth admin:changeme
Try what @somesoni2 suggested?
targetUri = IPAddressOfYourServerHere:8089
Hit ESC, :wq, Enter
Restart Splunk, then check splunkd.log and report back