<?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 Can't resolve hostname for HTTP Event Collector in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518245#M173</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm very new to splunk and have signed up for a trial account and am looking to connect with HTTP Event Collector using simple Curl commands.&lt;/P&gt;&lt;P&gt;Following the docs here :&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2007/Data/UsetheHTTPEventCollector" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2007/Data/UsetheHTTPEventCollector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've set up my new token using the default configuration. I'm certain I'm using the managed service as I don't have any access to global settings.&lt;/P&gt;&lt;P&gt;According to the above docs to make calls using curl the endpoint is&amp;nbsp;&amp;lt;protocol&amp;gt;://http-inputs-&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;endpoint&amp;gt; however I can't get anything other than&amp;nbsp;&lt;STRONG&gt;curl: (6) Could not resolve host: http-inputs-&amp;lt;hostname&amp;gt;.splunkcloud.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Do I need to enable something in my account so this host becomes available?&lt;BR /&gt;I'm using my login URL (from the screenshot below) as the hostname. That is correct yes?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-09-07 15-05-39.png" style="width: 185px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10687i3C8D62FE138957CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-09-07 15-05-39.png" alt="Screenshot from 2020-09-07 15-05-39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Sep 2020 14:10:31 GMT</pubDate>
    <dc:creator>transformddaveh</dc:creator>
    <dc:date>2020-09-07T14:10:31Z</dc:date>
    <item>
      <title>Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518245#M173</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I'm very new to splunk and have signed up for a trial account and am looking to connect with HTTP Event Collector using simple Curl commands.&lt;/P&gt;&lt;P&gt;Following the docs here :&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/8.0.2007/Data/UsetheHTTPEventCollector" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/SplunkCloud/8.0.2007/Data/UsetheHTTPEventCollector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I've set up my new token using the default configuration. I'm certain I'm using the managed service as I don't have any access to global settings.&lt;/P&gt;&lt;P&gt;According to the above docs to make calls using curl the endpoint is&amp;nbsp;&amp;lt;protocol&amp;gt;://http-inputs-&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/&amp;lt;endpoint&amp;gt; however I can't get anything other than&amp;nbsp;&lt;STRONG&gt;curl: (6) Could not resolve host: http-inputs-&amp;lt;hostname&amp;gt;.splunkcloud.com&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Do I need to enable something in my account so this host becomes available?&lt;BR /&gt;I'm using my login URL (from the screenshot below) as the hostname. That is correct yes?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2020-09-07 15-05-39.png" style="width: 185px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10687i3C8D62FE138957CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-09-07 15-05-39.png" alt="Screenshot from 2020-09-07 15-05-39.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 14:10:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518245#M173</guid>
      <dc:creator>transformddaveh</dc:creator>
      <dc:date>2020-09-07T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518371#M174</link>
      <description>&lt;P&gt;&lt;SPAN class="mw-headline"&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/UsetheHTTPEventCollector&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Splunk Enterprise and Self-service Splunk Cloud

curl -k https://hec.splunk.com:8088/services/collector/event -H "Authorization: Splunk B5A89CAD-D842-46CC-80A1-017F83D7CFB2" -d '{"event": "hello world"}'&lt;/LI-CODE&gt;&lt;P&gt;hope you have created New token using settings - &amp;gt; Data Inputs -&amp;gt; HTTP event collector&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hec.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/10705i2B07F75A5AC941AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="hec.png" alt="hec.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;you are getting error because you are using wrong URL. use the one splunk has provided.&amp;nbsp;&lt;/P&gt;&lt;P&gt;for example : if they have provided URL &lt;STRONG&gt;prd-abcd.splunkcloud.com&lt;/STRONG&gt; your curl statement would be&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k https://prd-abcd.splunkcloud.com:8088/services/collector/event -H "Authorization: Splunk yourtoken" -d '{"event": "hello world"}'&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN class="mw-headline"&gt;&lt;STRONG&gt;Note:&lt;/STRONG&gt; replace &lt;STRONG&gt;yourtoken&lt;/STRONG&gt; with token you get from you splunkcloud instance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mw-headline"&gt;don't enable Indexer acknowledgement in HEC settings while testing it from curl. if it's enabled you may get an error like below:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"text":"Data channel is missing" ,"code":10}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 07:23:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518371#M174</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-08T07:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518382#M175</link>
      <description>&lt;P&gt;If you enable it then you must add that channel on those requests and also query those ack on your client. More information can found from:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/AboutHECIDXAck" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.6/Data/AboutHECIDXAck&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If it's mandatory that you don't lost event then you must use that, otherwise you could lost some events time by time. This can also leads you a situation where you have duplicate events!&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 07:54:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518382#M175</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-08T07:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518744#M181</link>
      <description>&lt;P&gt;Thanks for the help guys. Feels like I'm getting closer as no longer getting host not resolve but still getting this as a return:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;!doctype html&amp;gt;&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&amp;gt;&amp;lt;meta http-equiv="refresh" content="1;url=https://prd-p-xxxxx.splunkcloud.com/en-US/services/collector/event"&amp;gt;&amp;lt;title&amp;gt;303 See Other&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;&amp;lt;h1&amp;gt;See Other&amp;lt;/h1&amp;gt;&amp;lt;p&amp;gt;The resource has moved temporarily &amp;lt;a href="https://prd-p-xxxxx.splunkcloud.com/en-US/services/collector/event"&amp;gt;here&amp;lt;/a&amp;gt;.&amp;lt;/p&amp;gt;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;Tried with &lt;STRONG&gt;/services/collector&lt;/STRONG&gt; (no /event) but same result. Maybe the end point has changed?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was bit confused by the documentation which had prefix's for the URL of input or http-inputs depending on whether I'm using self service or managed (I am using a managed trial service at the moment).&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 17:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518744#M181</guid>
      <dc:creator>transformddaveh</dc:creator>
      <dc:date>2020-09-09T17:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518749#M182</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225922"&gt;@transformddaveh&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;please read through my answer:&lt;/P&gt;&lt;P&gt;the reason for getting the error is you haven’t specified port number which is supposed to be 8088&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 18:28:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518749#M182</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-09T18:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518754#M183</link>
      <description>In managed cloud environment this is 443, which don’t need to add to url. &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/Data/UsetheHTTPEventCollector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/Data/UsetheHTTPEventCollector&lt;/A&gt;</description>
      <pubDate>Wed, 09 Sep 2020 18:58:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518754#M183</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-09T18:58:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518755#M184</link>
      <description>&lt;P&gt;The one he/she is using is not managed cloud instance.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2020 19:00:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518755#M184</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-09T19:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518880#M186</link>
      <description>&lt;P&gt;Thank you that was what I was missing the second time around.&lt;/P&gt;&lt;P&gt;I am now getting the right response!! Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 13:23:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518880#M186</guid>
      <dc:creator>transformddaveh</dc:creator>
      <dc:date>2020-09-10T13:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518885#M187</link>
      <description>&lt;P&gt;great, you got solution, please accept my answer as solution, if you think that solves your problem.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 13:33:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/518885#M187</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2020-09-10T13:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/519667#M199</link>
      <description>&lt;P&gt;But this url is not working for docker using de logs driver. That's because the certificate used in &amp;nbsp;&lt;STRONG&gt;&lt;A href="https://prd-abcd.splunkcloud.com:8088" target="_blank"&gt;https://prd-abcd.splunkcloud.com:8088&lt;/A&gt;&lt;/STRONG&gt;&amp;nbsp;is not the same used in port 443 and the valid one in&amp;nbsp;&lt;STRONG&gt;&lt;A href="https://prd-abcd.splunkcloud.com:8088" target="_blank"&gt;https://prd-abcd.splunkcloud.com&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;This leads to a problem running the docker driver like this one:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ERROR: for &amp;lt;service-name&amp;gt;  Cannot start service &amp;lt;service-name&amp;gt;: failed to initialize logging driver: Options https://prd-p-xxxxx.splunkcloud.com:8088/services/collector/event/1.0: x509: certificate is valid for SplunkServerDefaultCert, not prd-p-xxxxx.splunkcloud.com&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 11:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/519667#M199</guid>
      <dc:creator>cruizba</dc:creator>
      <dc:date>2020-09-15T11:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't resolve hostname for HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/597499#M1434</link>
      <description>&lt;P&gt;it worked like a charm!!&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 03:04:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Can-t-resolve-hostname-for-HTTP-Event-Collector/m-p/597499#M1434</guid>
      <dc:creator>luis13</dc:creator>
      <dc:date>2022-05-12T03:04:51Z</dc:date>
    </item>
  </channel>
</rss>

