<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Tried to add a search peer: Error while sending public key to search peer: Connection closed by peer in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267642#M80510</link>
    <description>&lt;P&gt;Check the host level firewall. as often we avoid it in our troubleshooting. &lt;BR /&gt;
enable/permit the port in firewall using:&lt;BR /&gt;
sudo firewall-cmd --zone=public --add-port=8089/tcp --permanent&lt;/P&gt;

&lt;P&gt;and reload the config list:&lt;BR /&gt;
firewall-cmd --list-all&lt;/P&gt;

&lt;P&gt;Now configure the search peers. &lt;/P&gt;</description>
    <pubDate>Sun, 27 Nov 2016 07:27:07 GMT</pubDate>
    <dc:creator>neelamsantosh</dc:creator>
    <dc:date>2016-11-27T07:27:07Z</dc:date>
    <item>
      <title>Tried to add a search peer: Error while sending public key to search peer: Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267640#M80508</link>
      <description>&lt;P&gt;(attempting 1 Indexer, +1 SH setup)&lt;/P&gt;

&lt;P&gt;Tried the Following the Instructions from Splunk&lt;BR /&gt;
1. Log into Splunk Web on the search head and click Settings at the top of the page.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Click Distributed search in the Distributed Environment area.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Click Search peers.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;On the Search peers page, select New.&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Specify the search peer, along with any authentication settings.&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Note: You must precede the search peer's host name or IP address with the URI scheme, either "http" or "https".&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Click Save.&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Repeat for each of the search head's search peers.&lt;/LI&gt;
&lt;/OL&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;I've confirmed that my management port is open. Was able to confirm that all my forwarders are also connecting via 8089 so i'm not sure why it's saying connection closed ... The search peer has everything on it.&lt;/P&gt;

&lt;P&gt;It produces: Encountered the following error while trying to save: In handler 'distsearch-peer': Error while sending public key to search peer: Connection closed by peer&lt;/P&gt;

&lt;P&gt;I've also tried to add make this search head a slave to my indexer that is the license master but when I add &lt;A href="http://myserver.domain.com:8089"&gt;http://myserver.domain.com:8089&lt;/A&gt; I get similar results: Bad Request — In handler 'localslave': editTracker failed, reason='Unable to connect to license master: &lt;A href="http://myserver.domain.com:8089"&gt;http://myserver.domain.com:8089&lt;/A&gt; Unknown read error' &lt;/P&gt;

&lt;P&gt;This is wild because I'm able to telnet fine, when I netstat it shows connection to 8089 on the search peer, fire wall is wide open but still no connection error... Is there any steps I have to do prior? Does this only work with https? Are there any steps other than changing the default password on both nodes that I have to do?  Do I need to adjust anything in the DMC prior? or perhaps in any of the config files to prep? Thanks for your help&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 04:39:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267640#M80508</guid>
      <dc:creator>Jarohnimo</dc:creator>
      <dc:date>2016-07-21T04:39:15Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267641#M80509</link>
      <description>&lt;P&gt;I Figured it out, Both messages were related to me just not knowing what the heck i'm doing.&lt;/P&gt;

&lt;P&gt;Licensing issues: The account that i was logged in with was an Admin in Splunk on both nodes but didn't have any rights on the server. I then tried switching the Search HEad to Slave with my Server Admin account (Also splunk admin) and then it worked. I found one of my issues was on the new server (SH) i jumped the gun adding the license to this box and then splunk got mad. You only need it on the master.&lt;/P&gt;

&lt;P&gt;Adding the Distributive search answer:&lt;/P&gt;

&lt;P&gt;I was typing &lt;A href="http://myserver.domain.com:8089"&gt;http://myserver.domain.com:8089&lt;/A&gt; (Even though its an option that suppose to work) for me it didn't. Just go with their first option in: Servername:Port# it will work. (Remember to use an account that has local admin rights on both boxes as well is a splunk admin... preferably a domain account) &lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 14:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267641#M80509</guid>
      <dc:creator>Jarohnimo</dc:creator>
      <dc:date>2016-07-22T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267642#M80510</link>
      <description>&lt;P&gt;Check the host level firewall. as often we avoid it in our troubleshooting. &lt;BR /&gt;
enable/permit the port in firewall using:&lt;BR /&gt;
sudo firewall-cmd --zone=public --add-port=8089/tcp --permanent&lt;/P&gt;

&lt;P&gt;and reload the config list:&lt;BR /&gt;
firewall-cmd --list-all&lt;/P&gt;

&lt;P&gt;Now configure the search peers. &lt;/P&gt;</description>
      <pubDate>Sun, 27 Nov 2016 07:27:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267642#M80510</guid>
      <dc:creator>neelamsantosh</dc:creator>
      <dc:date>2016-11-27T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Tried to add a search peer: Error while sending public key to search peer: Connection closed by peer</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267643#M80511</link>
      <description>&lt;P&gt;Sometimes the service is not reachable, so gives this error.&lt;/P&gt;

&lt;P&gt;You can use inbuilt user account or domain account. &lt;/P&gt;</description>
      <pubDate>Thu, 14 Sep 2017 03:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Tried-to-add-a-search-peer-Error-while-sending-public-key-to/m-p/267643#M80511</guid>
      <dc:creator>anand_singh17</dc:creator>
      <dc:date>2017-09-14T03:51:04Z</dc:date>
    </item>
  </channel>
</rss>

