<?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: Why am I getting error &amp;quot;Unexpected character while looking for value: '&amp;lt;'&amp;quot; using Indexer Discovery in a master node of an indexer cluster? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250706#M48262</link>
    <description>&lt;P&gt;thanks for your input Lucas, I ended up doing the exact same thing, so I guess that either the documentation is wrong or this is a bug and a possible workaround? &lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2015 10:55:20 GMT</pubDate>
    <dc:creator>asimagu</dc:creator>
    <dc:date>2015-12-01T10:55:20Z</dc:date>
    <item>
      <title>Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250699#M48255</link>
      <description>&lt;P&gt;hi guys&lt;/P&gt;

&lt;P&gt;I am just having a go with the new feature of Indexer Discovery at the master node of my 6.3 cluster.  &lt;/P&gt;

&lt;P&gt;I configured the following things:&lt;/P&gt;

&lt;P&gt;In the master, server.conf  I added:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexer_discovery]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In my Heavy Forwarder, I created the following outputs.conf under &lt;CODE&gt;$SPLUNK_HOME/etc/apps/SplunkForwarder/local/&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[indexer_discovery:master1]
master_uri = https://&amp;lt;my_ip&amp;gt;:8089

[tcpout:group1]
autoLBFrequency = 30
forceTimebasedAutoLB = true
indexerDiscovery = master1
useACK=true

[tcpout]
defaultGroup = group1
forwardedindex.filter.disable = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was trying to forward my _internal data, however, I am getting the following errors on splunkd.log&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;09-30-2015 16:45:50.639 +0100 ERROR HttpClientRequest - Caught exception while parsing HTTP reply: Unexpected character while looking for value: '&amp;lt;'
09-30-2015 16:45:50.639 +0100 ERROR IndexerDiscoveryHeartbeatThread - failed heartbeat for group=group1 uri=https://&amp;lt;my_ip&amp;gt;:8089/services/indexer_discovery http_response=Unauthorized
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, it's quite clear that there is a problem when the forwarder needs to contact the Indexer Discovery feature on the master.&lt;/P&gt;

&lt;P&gt;When I try to browse https://&amp;lt;my_ip&amp;gt;:8089/services/indexer_discovery I get the following screen&lt;BR /&gt;
&lt;IMG src="https://community.splunk.com/storage/temp/62269-sc1.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Can you help me? What am I missing??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250699#M48255</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2020-09-29T07:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250700#M48256</link>
      <description>&lt;P&gt;You need to set pass4SymmKey in the forwarder's [indexer_discovery] to match either [general] or [indexer_discovery]'s pass4SymmKey of CM.&lt;/P&gt;

&lt;P&gt;On the other hand, your curl request is not valid. It should look something similar to this (It's a post and needs authentication):&lt;/P&gt;

&lt;P&gt;curl -k -u admin:changeme -d "site=default" -d "guid=xxxx" &lt;A href="https://localhost:8090/services/indexer_discovery" target="_blank"&gt;https://localhost:8090/services/indexer_discovery&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:25:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250700#M48256</guid>
      <dc:creator>halayli_splunk</dc:creator>
      <dc:date>2020-09-29T07:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250701#M48257</link>
      <description>&lt;P&gt;I did not set any [indexer_discovery]'s pass4SymmKey, by general you mean the cluster pass4SymmKey??&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 08:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250701#M48257</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2015-10-01T08:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250702#M48258</link>
      <description>&lt;P&gt;You must set the pass4SymmKey on the forwarders when using indexer discovery.  The docs were incorrect on this issue, but have now been updated.  See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.0/Indexer/indexerdiscovery#3._Configure_the_forwarders"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.0/Indexer/indexerdiscovery#3._Configure_the_forwarders&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250702#M48258</guid>
      <dc:creator>Steve_G_</dc:creator>
      <dc:date>2015-10-01T14:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250703#M48259</link>
      <description>&lt;P&gt;Also, if you do not explicitly set pass4SymmKey in the cluster master's [indexer_discovery] stanza, the master will use the value in its [general] stanza - either a value that you have explicitly set there or the default value. &lt;/P&gt;

&lt;P&gt;In either case, the forwarder's value in [indexer_discovery] must match that value. &lt;/P&gt;

&lt;P&gt;Therefore, the simplest way to deal with this is to set  pass4SymmKey  in the [indexer_discovery] stanza on the master, as well as on all the forwarders.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 14:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250703#M48259</guid>
      <dc:creator>Steve_G_</dc:creator>
      <dc:date>2015-10-01T14:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250704#M48260</link>
      <description>&lt;P&gt;hum...thanks for your help, but I think there is something else going on. &lt;BR /&gt;
I copied the exact config from the doc example on my CM and on my HWF. As soon as I restart the HWF with the new config, it even stops indexing internal stuff so I have to manually go to splunkd.log and this is the ERROR that I get:&lt;/P&gt;

&lt;P&gt;10-02-2015 10:52:43.908 +0100 ERROR IndexerDiscoveryHeartbeatThread - failed to parse response payload for group=group1, err=failed to extract FwdTarget from json node={"hostport":"?","ssl":false,"indexing_disk_space":23184490496}http_response=OK&lt;/P&gt;

&lt;P&gt;any ideas? it seems there is something funky going on with the IndexerDiscovery but at the same time I don't get why the HWF stops indexing its own internal stuff&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250704#M48260</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2020-09-29T07:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250705#M48261</link>
      <description>&lt;P&gt;I got a similar issue. I was using the master to give itself a list of peers to send internal logs to however and not a heavy forwarder. &lt;/P&gt;

&lt;P&gt;In this case I &lt;STRONG&gt;HAD&lt;/STRONG&gt; use the password as listed in the [general] stanza and &lt;STRONG&gt;NOT&lt;/STRONG&gt; the indexer_discovery one. Even though both could be set the indexer discovery one even when set with plaintext will fail.&lt;/P&gt;

&lt;P&gt;I was getting the exact same error and have just resolved it in the past few minutes.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 04:20:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250705#M48261</guid>
      <dc:creator>Lucas_K</dc:creator>
      <dc:date>2015-12-01T04:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250706#M48262</link>
      <description>&lt;P&gt;thanks for your input Lucas, I ended up doing the exact same thing, so I guess that either the documentation is wrong or this is a bug and a possible workaround? &lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 10:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250706#M48262</guid>
      <dc:creator>asimagu</dc:creator>
      <dc:date>2015-12-01T10:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250707#M48263</link>
      <description>&lt;P&gt;I had this same error, but in my case it was caused by something weird with one of the indexers.   I ran the CURL command noted above and saw that one of the 4 indexes was missing (or "replaced with hostport="?").  So I went to the "missing" indexer, ran a &lt;CODE&gt;splunk offline&lt;/CODE&gt; and now the UF started working correctly and the CURL command returns only a valid list of indexers.  Very weird.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Dec 2015 23:44:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250707#M48263</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2015-12-15T23:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why am I getting error "Unexpected character while looking for value: '&lt;'" using Indexer Discovery in a master node of an indexer cluster?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250708#M48264</link>
      <description>&lt;P&gt;For anyone who cares (or next time I run into this issue), ... I found and resolved my issue.&lt;/P&gt;

&lt;P&gt;I missed setting up a TCP Input on one of the 4 peer nodes.   (This is why automation rocks, and doing stuff by hand is evil).&lt;/P&gt;

&lt;P&gt;I found that if I hit the &lt;CODE&gt;/services/cluster/config&lt;/CODE&gt; endpoint on all the peer nodes, the one that was causing issues was returning &lt;CODE&gt;?&lt;/CODE&gt; for &lt;CODE&gt;forwarderdata_rcv_port&lt;/CODE&gt;.  Apparently the cluster master sends this bogus value to the UF's via the &lt;CODE&gt;/services/indexer_discovery&lt;/CODE&gt; endpoint.  Whoops.&lt;/P&gt;

&lt;P&gt;Find it in splunk like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest services/cluster/config | search mode=slave forwarderdata_rcv_port="?"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Dec 2015 22:30:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-am-I-getting-error-quot-Unexpected-character-while-looking/m-p/250708#M48264</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2015-12-16T22:30:50Z</dc:date>
    </item>
  </channel>
</rss>

