Hello,
I am trying to add two more indexers to our current Splunk setup. Our current setup is a search head and two indexers using replication. These are all Linux machines.
I have attempted to add the first one, but it is not working. The error I get in Distributed Search >> Search Peers on the search head is:
Error [00000080] Failed 12 out of 11 times.REST interface to peer is taking longer than 5 seconds to respond on https. Peer may be over subscribed or misconfigured. Check var/log/splunk/splunkd_access.log on the peer
The splunkd_access.log does not have much useful info that I can see.
Another strange thing is the warning on the search head lists an IP value that does not exist for this new indexer, and I have no idea where it got that IP from (server IP should match what is in name. These are just random IP values I replaced the real ones with for sample purposes):
Failed to add peer 'guid=CA7694EA-40EE-4B40-8506-DAFD18BCAB2E server name=ip-99-8-321-101 ip=99.0.4.23:8089' to the master. Error=http client error=Connection refused, while trying to reach https://99.0.4.23:8089/services/cluster/config
Here is how I set up the new indexer:
1. Created the linux Machine and installed 6.4 enterprise on it
2. Copied over the following conf files from a previously running Indexer: server, alert_actions, authentication, authorize, props, transforms, web
3. Copied over server.pem from etc/auth
4. When trying to restart splunk, The Waiting for web server at http://127.0.0.1:8000 to be available.... would never connect
5. Thought it might be because I copied over the server.pem, so I restored the backup.
6. Commented out the sslKeysfilePassword in server.conf
7. Tried restarting again, and splunk came up
However, now I am getting the two errors I mentioned above.
Questions
1. Where is that IP value coming from in the search head error?
2. Are there other conf files I should not have copied over?
3. Did I mess the server up as soon as I copied over the other indexer's server.pem and tried to restart splunk?
4. Do I need to change the pass4SymmKey in server.conf?
Thank you!
Are you specifying this in when connecting to the indexer: https://ip-99-8-321-101:8089 ?
If so, try using nslookup ip-99-8-321-101
on command line to see if dns has wrong IP for that server
I believe you have a DNS issue.
the pass4SymmKey should match on every server in the cluster.
Finally solved this! Here is what I did:
Thank you for this! I added the register_replication_address and register_search_address to the indexer, but I am now getting "Failed to contact license master: reason='WARN: path=/masterlm/usage: invalid signature on request "
Looks like this is because pass4SymmKey is different. Unfortunately, I do not remember the original clear text value of that key when the original indexers were created.
How can I get ALL servers on the same pass4SymmKey value?
You set the new pass4symmKey in /etc/system/local/server.conf and restart each instance. I converted my comment to answer as I mentioned this in my comment as well.
Also if you are distributing server.conf via application... not recommended but some people do... you'lll have to remove the encrypted pass4SymmKey from /etc/apps/appName/default/server.conf because splunk encrypts the one found in /etc/apps/appName/local/server.conf into the one in the default folder instead.
Are you specifying this in when connecting to the indexer: https://ip-99-8-321-101:8089 ?
If so, try using nslookup ip-99-8-321-101
on command line to see if dns has wrong IP for that server
I believe you have a DNS issue.
the pass4SymmKey should match on every server in the cluster.
You are right, the nslookup fails for that DNS. I also updated the pass4SymmKey value.
Another issue I noticed was that in the Search Peers list, the new indexer does not have the Cluster label value.
Is it working? Want me to convert my comment to an answer?
Unfortunately, it is still not working. What is more strange is the other two indexers that work, nslookup on their ip- does not work either, yet they are working in the search head.
This may be an authorization issue, as I am unable to log into the 8089:/services page with this indexer either.
Thank you for your help!
So is it still using the default admin:changeme user/pass? You have to change this password to enable the rest api.
Are you specifying this in when connecting to the indexer: https://ip-99-8-321-101:8089 ?
A little update
1. It turns out the IP that the search head sees(99.0.4.23:8089) which is incorrect, is actually the VPN IP that the Indexer goes through to connect to the Search head
2. The authentication issue to https://ip-99-8-321-101:8089/services was fixed when I reset the admin password(It was not changeme, so I renamed the passwd to passwd.bak, then changed it from changeme to something I'd know)
It is still not working however.