<?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 Http Event Collector CURL errors with {&amp;quot;text&amp;quot;:&amp;quot;Invalid token&amp;quot;,&amp;quot;code&amp;quot;:4} or &amp;quot;Empty reply from server&amp;quot; using Windows in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207413#M40901</link>
    <description>&lt;P&gt;I configured HTTP Event Collector and am trying to test it with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k  &lt;A href="https://localhost:8088/services/collector/event" target="test_blank"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 8111111111111*"  -d '{"event": "hello world"}'
error:  {"text"."Invalid token","code"4}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="http://localhost:8088/services/collector/event" target="test_blank"&gt;http://localhost:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 8111111111111*" -d "{\"event\":\"hello world\"}"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I get response &lt;CODE&gt;curl: (52) Empty reply from server&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Running Windows Server 2012 R2&lt;/P&gt;

&lt;P&gt;Why is this not working?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Aug 2016 20:29:08 GMT</pubDate>
    <dc:creator>sfortier99</dc:creator>
    <dc:date>2016-08-05T20:29:08Z</dc:date>
    <item>
      <title>Http Event Collector CURL errors with {"text":"Invalid token","code":4} or "Empty reply from server" using Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207413#M40901</link>
      <description>&lt;P&gt;I configured HTTP Event Collector and am trying to test it with:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k  &lt;A href="https://localhost:8088/services/collector/event" target="test_blank"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 8111111111111*"  -d '{"event": "hello world"}'
error:  {"text"."Invalid token","code"4}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I also tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k &lt;A href="http://localhost:8088/services/collector/event" target="test_blank"&gt;http://localhost:8088/services/collector/event&lt;/A&gt; -H "Authorization: Splunk 8111111111111*" -d "{\"event\":\"hello world\"}"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I get response &lt;CODE&gt;curl: (52) Empty reply from server&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Running Windows Server 2012 R2&lt;/P&gt;

&lt;P&gt;Why is this not working?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207413#M40901</guid>
      <dc:creator>sfortier99</dc:creator>
      <dc:date>2016-08-05T20:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector CURL errors with {"text":"Invalid token","code":4} or "Empty reply from server" using Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207414#M40902</link>
      <description>&lt;P&gt;Give this a try (verify the token value is correct and same as what you generated in Splunk)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;curl -k  &lt;A href="https://localhost:8088/services/collector/event" target="test_blank"&gt;https://localhost:8088/services/collector/event&lt;/A&gt; -H 'Authorization: Splunk 8111111111111'  -d '{"event": "hello world"}'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Aug 2016 20:51:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207414#M40902</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-08-05T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector CURL errors with {"text":"Invalid token","code":4} or "Empty reply from server" using Windows</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207415#M40903</link>
      <description>&lt;P&gt;How did you create your token? Did you manually add a stanza to conf? If so which conf file, and can you show the stanza?&lt;/P&gt;

&lt;P&gt;If you log into the Splunk UI and go to Settings-&amp;gt;Data Inputs-&amp;gt;HTTP Event Collector does your token show in the list?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2016 05:40:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/207415#M40903</guid>
      <dc:creator>gblock_splunk</dc:creator>
      <dc:date>2016-08-16T05:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Http Event Collector CURL errors with {"text":"Invalid token","code":4} or "Empty</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/596178#M104112</link>
      <description>&lt;P&gt;If you are using deploment server to create the token and push it to your heavy forwarders where it should be actually authenticate then you have to:&lt;BR /&gt;1. To make sure you change useDeploymentServer flag to true as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;useDeploymentServer = 1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When this option is set to&amp;nbsp;&lt;/SPAN&gt;1&lt;SPAN&gt;&amp;nbsp;and you make UI-based HEC changes on the deployment server, those changes are placed directly in the $SPLUNK_HOME/etc/deployment-apps/splunk_httpinput/ folder, rather than in $SPLUNK_HOME/etc/apps/folder.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Because if&amp;nbsp; your inputs changes is there in the&amp;nbsp;$SPLUNK_HOME/etc/apps/&amp;lt;anyapp&amp;gt;/inputs.conf&amp;nbsp; on deployment server and also in your Heavy forwarder . Then the rest/curl call to token will end up in Invalid token response code 4.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 16:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Http-Event-Collector-CURL-errors-with-quot-text-quot-quot/m-p/596178#M104112</guid>
      <dc:creator>KrishatSplunk</dc:creator>
      <dc:date>2022-05-02T16:41:20Z</dc:date>
    </item>
  </channel>
</rss>

