<?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 HEC troubleshooting in distributed Enterprise environment in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/556758#M92136</link>
    <description>&lt;P&gt;I cannot figure out which component to enable HEC and where to send the events. We have an on prem Splunk Enterprise distributed configuration with a Deployment server, Indexer and SearchHead. We also have an independent "sandbox" environment for testing where I'm trying to set this up. Sandbox is 1 server with the whole Splunk Enterprise installation, however we do use the deployment server to setup and configure the sandbox universal forwarders, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I setup HEC tokens on the sandbox and could not figure out how to get it working. I am testing using Curl commands. I then added HEC tokens on the deployment server and still testing with Curl, cannot figure out how to send events to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get these errors:&lt;/P&gt;&lt;P&gt;1) Sending curl to sandbox URL with either deployment server HEC token or sandbox HEC token&lt;/P&gt;&lt;P&gt;"The requested URL was not found on this server.","code":404&lt;/P&gt;&lt;P&gt;2) Sending curl to indexer URL with either deployment server HEC token or Sandbox HEC token&lt;/P&gt;&lt;P&gt;Failed to connect to spidxa.open-techs.local port 8088: Connection refused&lt;/P&gt;&lt;P&gt;3) Sending curl to deployment server URL with either deployment server HEC token or Sandbox HEC token&lt;/P&gt;&lt;P&gt;Failed to connect to spmgta.open-techs.local port 8088: Connection timed out&lt;/P&gt;&lt;P&gt;4) Sending curl to SearchHead URL with either deployment server HEC token or Sandbox HEC token, and this is likely a firewall issue, but it doesn't make sense to me to send the event to the search head, so I haven't pushed security to open this port.&lt;/P&gt;&lt;P&gt;Failed to connect to spsha.open-techs.local port 8088: No route to host&lt;/P&gt;&lt;P&gt;This is my curl command with escaped double quotes and {variable substitutions}&lt;/P&gt;&lt;P&gt;curl -g -k --location --request POST 'https://#{server I am testing}:8088/services/collector/event'&amp;nbsp;--header "Authorization: Splunk {token}" --header "Content-Type: text/plain" --data-raw "{\"event\": \"Test kong_dev\"}"&lt;/P&gt;&lt;P&gt;Can anybody tell me which components do which part of the HEC event collection? The introspection\http_event_Collector_metrics.log on both deployment and sandbox just show one minute intervals of 0 transactions going through there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 18:06:27 GMT</pubDate>
    <dc:creator>cmuesing</dc:creator>
    <dc:date>2021-06-22T18:06:27Z</dc:date>
    <item>
      <title>HEC troubleshooting in distributed Enterprise environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/556758#M92136</link>
      <description>&lt;P&gt;I cannot figure out which component to enable HEC and where to send the events. We have an on prem Splunk Enterprise distributed configuration with a Deployment server, Indexer and SearchHead. We also have an independent "sandbox" environment for testing where I'm trying to set this up. Sandbox is 1 server with the whole Splunk Enterprise installation, however we do use the deployment server to setup and configure the sandbox universal forwarders, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I setup HEC tokens on the sandbox and could not figure out how to get it working. I am testing using Curl commands. I then added HEC tokens on the deployment server and still testing with Curl, cannot figure out how to send events to it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get these errors:&lt;/P&gt;&lt;P&gt;1) Sending curl to sandbox URL with either deployment server HEC token or sandbox HEC token&lt;/P&gt;&lt;P&gt;"The requested URL was not found on this server.","code":404&lt;/P&gt;&lt;P&gt;2) Sending curl to indexer URL with either deployment server HEC token or Sandbox HEC token&lt;/P&gt;&lt;P&gt;Failed to connect to spidxa.open-techs.local port 8088: Connection refused&lt;/P&gt;&lt;P&gt;3) Sending curl to deployment server URL with either deployment server HEC token or Sandbox HEC token&lt;/P&gt;&lt;P&gt;Failed to connect to spmgta.open-techs.local port 8088: Connection timed out&lt;/P&gt;&lt;P&gt;4) Sending curl to SearchHead URL with either deployment server HEC token or Sandbox HEC token, and this is likely a firewall issue, but it doesn't make sense to me to send the event to the search head, so I haven't pushed security to open this port.&lt;/P&gt;&lt;P&gt;Failed to connect to spsha.open-techs.local port 8088: No route to host&lt;/P&gt;&lt;P&gt;This is my curl command with escaped double quotes and {variable substitutions}&lt;/P&gt;&lt;P&gt;curl -g -k --location --request POST 'https://#{server I am testing}:8088/services/collector/event'&amp;nbsp;--header "Authorization: Splunk {token}" --header "Content-Type: text/plain" --data-raw "{\"event\": \"Test kong_dev\"}"&lt;/P&gt;&lt;P&gt;Can anybody tell me which components do which part of the HEC event collection? The introspection\http_event_Collector_metrics.log on both deployment and sandbox just show one minute intervals of 0 transactions going through there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 18:06:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/556758#M92136</guid>
      <dc:creator>cmuesing</dc:creator>
      <dc:date>2021-06-22T18:06:27Z</dc:date>
    </item>
    <item>
      <title>Re: HEC troubleshooting in distributed Enterprise environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557023#M92165</link>
      <description>&lt;P&gt;Can anybody tell at least which component&amp;nbsp; the HEC token needs to be created on and which component I send the event to?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 15:33:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557023#M92165</guid>
      <dc:creator>cmuesing</dc:creator>
      <dc:date>2021-06-24T15:33:04Z</dc:date>
    </item>
    <item>
      <title>Re: HEC troubleshooting in distributed Enterprise environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557029#M92167</link>
      <description>&lt;P&gt;Hi Cindy,&lt;/P&gt;&lt;P&gt;Setup the HEC on your sandbox and use the IP or hostname of the sandbox server and token values in the following command:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -k&amp;nbsp; &lt;/SPAN&gt;&lt;A title="" target="_blank" rel="noopener"&gt;https://&amp;lt;sandbox_IP_or_hostname_here&amp;gt;:8088/services/collector/event&lt;/A&gt;&lt;SPAN&gt; -H "Authorization: Splunk &amp;lt;your_token_value_from_HEC_input_here&amp;gt;" -d '{"event": "This is a test of HEC"}'&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 17:09:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557029#M92167</guid>
      <dc:creator>nortonjco</dc:creator>
      <dc:date>2021-06-24T17:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: HEC troubleshooting in distributed Enterprise environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557438#M92266</link>
      <description>&lt;P&gt;Thank you so much nortonjco. That's just what I needed to get me past my issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jun 2021 14:25:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557438#M92266</guid>
      <dc:creator>cmuesing</dc:creator>
      <dc:date>2021-06-28T14:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: HEC troubleshooting in distributed Enterprise environment</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557554#M92272</link>
      <description>&lt;P&gt;There are many tutorials about this, and Splunk Documentation.&lt;/P&gt;&lt;P&gt;You need a Splunk Enterprise/Cloud (any instance, the instance, if not an Indexer, must &lt;U&gt;obviously&lt;/U&gt; have an outputs.conf to the Indexer[s]).&lt;/P&gt;&lt;P&gt;You can create it in WebIf (&lt;EM&gt;Settings/Data inputs/HTTP Event Collector&lt;/EM&gt;) with the wizard or in shell, &lt;EM&gt;inputs.conf&lt;/EM&gt; must contain something like&lt;/P&gt;&lt;P&gt;[&lt;A href="http://TestTOKEN" target="_blank" rel="noopener"&gt;http://TestTOKEN&lt;/A&gt;]&lt;BR /&gt;index = your_choosen_default_index&lt;BR /&gt;indexes = your_wanted_available_indexes&lt;BR /&gt;token = your_token (something like f6823587-1222-4cf0-ad8a-324b6def6d8d)&lt;BR /&gt;disabled = 0&lt;/P&gt;&lt;P&gt;Events, then, can be posted as described in the thread with a POST with personal token Authentication.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 08:03:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/HEC-troubleshooting-in-distributed-Enterprise-environment/m-p/557554#M92272</guid>
      <dc:creator>verbal_666</dc:creator>
      <dc:date>2021-06-29T08:03:50Z</dc:date>
    </item>
  </channel>
</rss>

