<?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: Stuck on Splunk Cloud HEC Connection: DNS Resolution Issues in Splunk Cloud Platform</title>
    <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751631#M3951</link>
    <description>&lt;P&gt;Thats right, the trial stacks run as a single instance without a load balancer infront of them I believe, therefore you access via the stack name on port 8088 without the http-input prefix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SSL is enabled on HEC but because it doesnt have a trusted cert (it uses the default Splunk cert on the server).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Aug 2025 09:57:48 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-08-14T09:57:48Z</dc:date>
    <item>
      <title>Stuck on Splunk Cloud HEC Connection: DNS Resolution Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751616#M3947</link>
      <description>&lt;P&gt;Hello Splunk Community,&lt;/P&gt;&lt;P&gt;I am trying to trace a Python FastAPI RAG API running on my local PC to my Splunk Cloud instance using the HTTP Event Collector (HEC). I am facing persistent issues with DNS resolution for the HEC endpoint hostname.&lt;/P&gt;&lt;H3&gt;What I have done on Splunk Cloud:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;Enabled HTTP Event Collector (HEC) in Global Settings.&lt;/LI&gt;&lt;LI&gt;Confirmed that SSL is required and enabled (cannot be unchecked).&lt;/LI&gt;&lt;LI&gt;Set the HTTP Port Number to 8088 in Global Settings.&lt;/LI&gt;&lt;LI&gt;Created an HEC token named "rag_tracer".&lt;/LI&gt;&lt;LI&gt;Assigned the token to use _json as the Sourcetype and mgap_cit_be_dev as the Index.&lt;/LI&gt;&lt;/OL&gt;&lt;H3&gt;My local setup:&lt;/H3&gt;&lt;P&gt;My application is a Python FastAPI service. I manage environment variables via a `.env` file, which is loaded at application startup. My tracing logic is implemented in a custom `tracing_helper.py` module, which attempts to connect to the HEC endpoint using the configured environment variables.&lt;/P&gt;&lt;H3&gt;The Issue:&lt;/H3&gt;&lt;P&gt;Despite configuring the HEC token and settings in Splunk Cloud, my application and direct `curl` commands consistently fail to connect to the HEC endpoint when using the hostname, resulting in `NameResolutionError` (or `[Errno 8] nodename nor servname provided, or not known`).&lt;/P&gt;&lt;P&gt;I have tried various `SPLUNK_HEC_URL` formats in my `.env` file, including:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://http-inputs-prd-p-gu5st.splunkcloud.com:8088/services/collector" target="_blank" rel="noopener"&gt;https://http-inputs-prd-p-gu5st.splunkcloud.com:8088/services/collector&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://http-inputs-prd-p-gu5st.splunkcloud.com:443/services/collector" target="_blank" rel="noopener"&gt;https://http-inputs-prd-p-gu5st.splunkcloud.com:443/services/collector&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://inputs-prd-p-gu5st.splunkcloud.com:8088/services/collector" target="_blank" rel="noopener"&gt;https://inputs-prd-p-gu5st.splunkcloud.com:8088/services/collector&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://prd-p-gu5st.splunkcloud.com:8088/services/collector" target="_blank" rel="noopener"&gt;https://prd-p-gu5st.splunkcloud.com:8088/services/collector&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://prd-p-gu5st.splunkcloud.com:443/services/collector" target="_blank" rel="noopener"&gt;https://prd-p-gu5st.splunkcloud.com:443/services/collector&lt;/A&gt; (This returned a 303 See Other, redirecting to `/en-US/services/collector`)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My application's logs repeatedly show:&lt;/P&gt;&lt;PRE&gt;DNS Resolution Error: [Errno 8] nodename nor servname provided, or not known
Unable to resolve Splunk Cloud HEC hostname. Check network configuration.
HTTPSConnectionPool(host='http-inputs-prd-p-gu5st.splunkcloud.com', port=443): Max retries exceeded with url: /services/collector (Caused by NameResolutionError("&amp;lt;urllib3.connection.HTTPSConnection object at 0x...&amp;gt;: Failed to resolve 'http-inputs-prd-p-gu5st.splunkcloud.com' ([Errno 8] nodename nor servname provided, or not known)"))&lt;/PRE&gt;&lt;P&gt;I have also performed network-level troubleshooting from my local machine:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;`nslookup http-inputs-prd-p-gu5st.splunkcloud.com` resulted in `** server can't find http-inputs-prd-p-gu5st.splunkcloud.com: REFUSED`&lt;/LI&gt;&lt;LI&gt;`ping -c 4 http-inputs-prd-p-gu5st.splunkcloud.com` resulted in `ping: cannot resolve http-inputs-prd-p-gu5st.splunkcloud.com: Unknown host`&lt;/LI&gt;&lt;LI&gt;`nslookup prd-p-gu5st.splunkcloud.com` (the main Splunk Cloud domain) also showed `REFUSED` for DNS resolution.&lt;/LI&gt;&lt;LI&gt;However, `curl -v &lt;A href="https://prd-p-gu5st.splunkcloud.com" target="_blank" rel="noopener"&gt;https://prd-p-gu5st.splunkcloud.com&lt;/A&gt;` successfully connected and resolved to `52.202.25.197`.&lt;/LI&gt;&lt;LI&gt;Crucially, when I configured `SPLUNK_HEC_URL` in my `.env` file to use the direct IP address `&lt;A href="https://52.202.25.197:8088/services/collector" target="_blank" rel="noopener"&gt;https://52.202.25.197:8088/services/collector&lt;/A&gt;`, a `curl` command to HEC &lt;STRONG&gt;succeeded&lt;/STRONG&gt; with `{"text":"Success","code":0}`. This confirms that the HEC endpoint is reachable via IP, but hostname resolution is the core problem.&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;My questions to the community are:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;What is the &lt;STRONG&gt;exact&lt;/STRONG&gt; and correct HEC endpoint URL format for Splunk Cloud trial instances (e.g., `prd-p-gu5st.splunkcloud.com`)? I cannot find a clear example of the full HEC URL in my Splunk Cloud console.&lt;/LI&gt;&lt;LI&gt;Can you outline the correct process to set up HEC in Splunk Cloud, step-by-step, specifically for a trial account?&lt;/LI&gt;&lt;LI&gt;What are the client-side configuration steps (e.g., environment variables, code changes) required to correctly communicate with HEC in Splunk Cloud from a local Python application?&lt;/LI&gt;&lt;LI&gt;Is there any specific IP allow-listing that needs to be done on the Splunk Cloud side for HEC, even though the documentation states it's open by default and I can access the Splunk Cloud web interface?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any guidance or suggestions would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 07:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751616#M3947</guid>
      <dc:creator>coddydaddy88</dc:creator>
      <dc:date>2025-08-14T07:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Splunk Cloud HEC Connection: DNS Resolution Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751621#M3948</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/312363"&gt;@coddydaddy88&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Splunk Cloud Trial instances are slightly different in configuration to production instances and have various restrictions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ultimately for a trial stack you need to use&amp;nbsp;&lt;/SPAN&gt;&lt;A target="_blank" rel="noopener"&gt;https://&amp;lt;stack&amp;gt;.splunkcloud.com:8088/services/collector/health&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For your stack this would be:&amp;nbsp;&lt;A href="https://prd-p-gu5st.splunkcloud.com:8088/services/collector" target="_blank"&gt;https://prd-p-gu5st.splunkcloud.com:8088/services/collector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;We can confirm HEC is running and accessible by visiting:&amp;nbsp;&lt;A href="https://prd-p-gu5st.splunkcloud.com:8088/services/collector/health" target="_blank"&gt;https://prd-p-gu5st.splunkcloud.com:8088/services/collector/health&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Note however that there is no trusted SSL Cert on 8088 when accessing on a Splunk Trial stack, in production stacks this is done via a Load Balancer with a valid trusted public certificate.&lt;/P&gt;&lt;P&gt;For your trial instance you will need to accept/allow a non-trusted certificate by setting verify=false in your code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 08:18:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751621#M3948</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-14T08:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Splunk Cloud HEC Connection: DNS Resolution Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751622#M3949</link>
      <description>&lt;P&gt;In relation to your other questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you outline the correct process to set up HEC in Splunk Cloud, step-by-step, specifically for a trial account?&lt;UL&gt;&lt;LI&gt;The process you carried out as per your post is a valid/correct approach.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;What are the client-side configuration steps (e.g., environment variables, code changes) required to correctly communicate with HEC in Splunk Cloud from a local Python application?&lt;UL&gt;&lt;LI&gt;The environment variables/code changes for your python application will ultimately depend on what you're implementing. If you'd like to share the code then we can help further, otherwise the only main difference between a Trial and Production stack is the endpoint (incl port 8088 for trial, but 443 for production) and also the SSL Verification which will need to be false for Trial stacks.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Is there any specific IP allow-listing that needs to be done on the Splunk Cloud side for HEC, even though the documentation states it's open by default and I can access the Splunk Cloud web interface?&lt;UL&gt;&lt;LI&gt;Splunk Cloud Trial stacks are open by default, Production environments are built with HEC open by default but can be limited if required using Admin Config Service (ACS) or settings within your cloud stack.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 08:23:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751622#M3949</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-14T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Splunk Cloud HEC Connection: DNS Resolution Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751630#M3950</link>
      <description>&lt;P&gt;But the address&amp;nbsp;http-inputs-prd-p-gu5st.splunkcloud.com doesn't resolve to an IP address indeed.&lt;/P&gt;&lt;P&gt;So it is not a proper address for the stack.&lt;/P&gt;&lt;P&gt;BTW, the trial stack uses a self-signed cert on HEC input or doesn't use TLS at all? I don't remember.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 09:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751630#M3950</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2025-08-14T09:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck on Splunk Cloud HEC Connection: DNS Resolution Issues</title>
      <link>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751631#M3951</link>
      <description>&lt;P&gt;Thats right, the trial stacks run as a single instance without a load balancer infront of them I believe, therefore you access via the stack name on port 8088 without the http-input prefix.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SSL is enabled on HEC but because it doesnt have a trusted cert (it uses the default Splunk cert on the server).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Aug 2025 09:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Cloud-Platform/Stuck-on-Splunk-Cloud-HEC-Connection-DNS-Resolution-Issues/m-p/751631#M3951</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-08-14T09:57:48Z</dc:date>
    </item>
  </channel>
</rss>

