<?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: Server returned HTTP response code: 400 for URL: http://localhost:8088/services/collector in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/520021#M6677</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226377"&gt;@P01YOGESHC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give this a try, and make sure your other server can resolve your splunk instance DNS, if not use the IP. Also, check SSL on url (http or https) and replace HEC token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k "http://DNS_OR_IP:8088/services/collector" -H "Authorization: Splunk C*****4-3**9-4**5-A**C-3**********7" -d '{"event": "Hello, world!", "sourcetype": "manual"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Sep 2020 21:46:35 GMT</pubDate>
    <dc:creator>alemarzu</dc:creator>
    <dc:date>2020-09-16T21:46:35Z</dc:date>
    <item>
      <title>Server returned HTTP response code: 400 for URL: http://localhost:8088/services/collector</title>
      <link>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/519965#M6674</link>
      <description>&lt;P&gt;Hi I am getting the below error while sending the login event from my website to Splunk.&lt;/P&gt;&lt;P&gt;Server returned HTTP response code: 400 for URL: &lt;A href="http://localhost:8088/services/collector" target="_blank" rel="noopener"&gt;http://localhost:8088/services/collector&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I have check vial curl command&lt;/P&gt;&lt;P&gt;curl -k "http://localhost:8088/services/collector" \ -H "Authorization: Splunk c14********************44f5" \ -d '{"event": "Hello, world!", "sourcetype": "manual"}'{"text":"Data channel is missing","code":10}curl: (6) Could not resolve host: \&lt;BR /&gt;curl: (6) Could not resolve host: \&lt;BR /&gt;curl: (6) Could not resolve host: Hello, world!,&lt;BR /&gt;curl: (6) Could not resolve host: sourcetype&lt;BR /&gt;curl: (3) [globbing] unmatched close brace/bracket in column 7&lt;/P&gt;&lt;P&gt;Please let me know what is missing I have also enabled&amp;nbsp;HTTP Event Collector from global settings. I am using latest version of splunk&amp;nbsp;Version:8.0.6&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 15:49:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/519965#M6674</guid>
      <dc:creator>P01YOGESHC</dc:creator>
      <dc:date>2020-09-16T15:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: Server returned HTTP response code: 400 for URL: http://localhost:8088/services/collector</title>
      <link>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/520021#M6677</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226377"&gt;@P01YOGESHC&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give this a try, and make sure your other server can resolve your splunk instance DNS, if not use the IP. Also, check SSL on url (http or https) and replace HEC token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k "http://DNS_OR_IP:8088/services/collector" -H "Authorization: Splunk C*****4-3**9-4**5-A**C-3**********7" -d '{"event": "Hello, world!", "sourcetype": "manual"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 21:46:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/520021#M6677</guid>
      <dc:creator>alemarzu</dc:creator>
      <dc:date>2020-09-16T21:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Server returned HTTP response code: 400 for URL: http://localhost:8088/services/collector</title>
      <link>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/520032#M6678</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/226377"&gt;@P01YOGESHC&lt;/a&gt;&amp;nbsp;, please give a try on the sample below.&lt;/P&gt;&lt;P&gt;I ran a test in my sandbox to index raw events and I have to add the channel plus token to get data indexed&lt;/P&gt;&lt;P&gt;In order to get the channel, please run this query on splunk srv.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="_internal" sourcetype=splunkd host=&amp;lt;server_name&amp;gt; | search guid!=" " | stats latest(host) latest(guid)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;In my test I used the ip address, but you can try the FQDN as well, then you can add the guid to the channel and the token after Authorization:Splunk&lt;/P&gt;&lt;P&gt;I also added the index and sourcetype to the comment&lt;/P&gt;&lt;P&gt;This sample works properly for raw event.&lt;/P&gt;&lt;P&gt;The server name should be the one where the HEC is setup to receive the data&lt;BR /&gt;curl -k "&lt;A href="https://XXX.X.XXX.XXX:8088/services/collector/raw?channel=" target="_blank"&gt;https://XXX.X.XXX.XXX:8088/services/collector/raw?channel=&lt;/A&gt;&lt;FONT face="arial black,avant garde"&gt;23XXXXX-XXX-XXXX-XXXX-XXXXXXXXXX&lt;/FONT&gt;&amp;amp;sourcetype=&lt;FONT face="arial black,avant garde"&gt;httpevent&lt;/FONT&gt;&amp;amp;index=&lt;FONT face="arial black,avant garde"&gt;main&lt;/FONT&gt;" -H "Authorization: Splunk &lt;FONT face="arial black,avant garde"&gt;46XXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX&lt;/FONT&gt;" -d '1, 2, 3... Hello, world!'&lt;/P&gt;&lt;P&gt;for further information, please check other samples at&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/HECExamples" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/HECExamples&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If this helps, please upvote. thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Sep 2020 23:48:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Server-returned-HTTP-response-code-400-for-URL-http-localhost/m-p/520032#M6678</guid>
      <dc:creator>ivanreis</dc:creator>
      <dc:date>2020-09-16T23:48:18Z</dc:date>
    </item>
  </channel>
</rss>

