<?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: Splunk HEC works only on localhost in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518012#M87617</link>
    <description>404 means that item not found. Basically it means that your URL is not correct. Which client and client os you are using? Are it same than you have on server?</description>
    <pubDate>Sat, 05 Sep 2020 07:51:48 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-09-05T07:51:48Z</dc:date>
    <item>
      <title>Splunk HTTP Event Collector works only on localhost.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517957#M87607</link>
      <description>&lt;P&gt;I have set up a Splunk Enterprise trial instance on a red-hat Linux server.&lt;/P&gt;
&lt;P&gt;I enabled and setup the HEC, however when I try the curl command to check:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Case 1: I get a successful response if I use localhost or &amp;lt;server name&amp;gt; from within the server.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k http://&amp;lt;servername&amp;gt;:8088/services/collector -H "Authorization: Splunk &amp;lt;token&amp;gt;" -d '{"event": "hello world again"}'
{"text":"Success","code":0}&lt;/LI-CODE&gt;
&lt;P&gt;Case 2: I get a 404 error when I use the &amp;lt;servername&amp;gt; in the command from outside the server&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k http://&amp;lt;servername&amp;gt;:8088/services/collector -H "Authorization: Splunk &amp;lt;token&amp;gt;" -d '{"event": "hello world again"}'
{"text":"The requested URL was not found on this server.","code":404}&lt;/LI-CODE&gt;
&lt;P&gt;I verified that the outside world can telnet the port 8088 on the server.&amp;nbsp; Also, the console opens on port 8000.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there any changes I need to make on the server? Or any configs on the Splunk end?&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 17:51:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517957#M87607</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-07T17:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517968#M87609</link>
      <description>&lt;P&gt;I verified that the firewalld is not running on the server and there are no iptables entry on the server.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 20:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517968#M87609</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-04T20:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517970#M87610</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;it should work just like from local host. Can you add /event to the end of url?&lt;/P&gt;&lt;P&gt;One parameter which can case this is acceptFrom. It should allow it frame everywhere, but if you have changed it somewhere else it could affect here.&lt;/P&gt;&lt;P&gt;Just try splunk btool inputs list http —debug and look what is it’s value.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 20:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517970#M87610</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-04T20:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517973#M87611</link>
      <description>&lt;P&gt;Added /event&amp;nbsp; at the end of the URL .This also returns 404 from outside the server but works inside the server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did not see the acceptFrom parameter in the output of&amp;nbsp;&lt;SPAN&gt;splunk btool inputs list http —debug&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 20:24:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517973#M87611</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-04T20:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517978#M87613</link>
      <description>Have you anything interesting on Splunk’s logs?</description>
      <pubDate>Fri, 04 Sep 2020 20:28:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517978#M87613</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-04T20:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517982#M87614</link>
      <description>&lt;P&gt;Nothing that helps on the splunk logs.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Sep 2020 20:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/517982#M87614</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-04T20:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518012#M87617</link>
      <description>404 means that item not found. Basically it means that your URL is not correct. Which client and client os you are using? Are it same than you have on server?</description>
      <pubDate>Sat, 05 Sep 2020 07:51:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518012#M87617</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-05T07:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518015#M87618</link>
      <description>&lt;P&gt;Well the Curl on the url Gives a successful response when tried on the server. And I see the hello world on splunk web console as well.&amp;nbsp;&lt;BR /&gt;The issue is when I try to curl from outside the server in the same network.&lt;/P&gt;&lt;P&gt;i am using splunk enterprise 8.0.3 running on red hat Linux 7.x 64-bit os&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 08:40:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518015#M87618</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-05T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518017#M87619</link>
      <description>&lt;P&gt;Is the second node where you can’t connect also rhel? As in Windows cmd line there could be some issues with “.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 09:41:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518017#M87619</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-05T09:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518018#M87620</link>
      <description>&lt;P&gt;No. It’s my windows machine where from where I use the splunk web console. I tried curl on a different Linux server in d same network, got 404 again. Basically http://&amp;lt;servername&amp;gt;:8088 doesn’t seem to be working anywhere outside the splunk server.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 10:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518018#M87620</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-05T10:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518023#M87621</link>
      <description>&lt;P&gt;Can you try curl -v ... from that another Linux server and paste it here?&lt;/P&gt;</description>
      <pubDate>Sat, 05 Sep 2020 10:34:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518023#M87621</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-05T10:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk HEC works only on localhost</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518278#M87636</link>
      <description>&lt;P&gt;i found that /raw at the end makes it work&lt;BR /&gt;Here's the URL thats working now&lt;/P&gt;&lt;P&gt;curl -k -H "Authorization: Splunk &amp;lt;token&amp;gt;" http://&amp;lt;servername&amp;gt;:8088/services/collector/raw -d "testing"&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 17:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-HTTP-Event-Collector-works-only-on-localhost/m-p/518278#M87636</guid>
      <dc:creator>syedimranstonex</dc:creator>
      <dc:date>2020-09-07T17:17:53Z</dc:date>
    </item>
  </channel>
</rss>

