<?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: Configure Universal forwarder 8.1.0 to send data over HTTP in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/675487#M18491</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149129"&gt;@prakash007&lt;/a&gt;&amp;nbsp;You posted this over a year ago but I'd like to know if you managed to solve this issue?&lt;BR /&gt;I've similar setup and getting HTTP 502 Bad Gateway&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 10:33:57 GMT</pubDate>
    <dc:creator>shahzadarif</dc:creator>
    <dc:date>2024-01-26T10:33:57Z</dc:date>
    <item>
      <title>How do I Configure Universal forwarder 8.1.0 to send data over HTTP?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/525602#M3883</link>
      <description>&lt;P&gt;I'm trying to use the recently released 8.1.0 Universal Forwarder to send logs over HTTP:&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Forwarder/8.1.0/Forwarder/Configureforwardingwithoutputs.conf#Configure_the_universal_forwarder_to_send_data_over_HTTP" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Forwarder/8.1.0/Forwarder/Configureforwardingwithoutputs.conf#Configure_the_universal_forwarder_to_send_data_over_HTTP&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I have my outputs.conf configured as described in that configuration:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[httpout]
httpEventCollectorToken = [my_hec_token]
uri = http://[my_splunk_url]:8088
batchSize = 65536
batchTimeout = 5&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am also able to curl the HTTP Event Collector and successfully test the endpoint from the machine running the Universal Forwarder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl -k http://[my_splunk_url]:8088/services/collector/event -H "Authorization: Splunk [my_hec_token]" -d '{"event": "hello world"}'
{"text":"Success","code":0}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However when I start the Universal Forwarder, it shows the following error in the splunkd.log:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;10-20-2020 14:41:40.989 +0000 ERROR S2SOverHttpOutputProcessor - HTTP 404 Not Found
10-20-2020 14:41:50.103 +0000 WARN  TailReader - Could not send data to output queue (parsingQueue), retrying...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried using https (although I know that the HEC endpoint in this case does not use https) and I have tried providing the /services/collector/event or /services/collector url paths in the config, but when doing any of these I instead get a 502 error in the log.&lt;/P&gt;
&lt;P&gt;How can I troubleshoot this?&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 18:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/525602#M3883</guid>
      <dc:creator>davisona</dc:creator>
      <dc:date>2022-06-01T18:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/528854#M4111</link>
      <description>&lt;P&gt;Which Splunk Enterprise Version are you running?&lt;/P&gt;&lt;P&gt;httpout on UFs requires Splunk Enterprise (or Cloud) to run on 8.1.x as well.&lt;/P&gt;&lt;P&gt;8.1 introduced a new HEC endpoint to which the UFs send their data over http: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.1.0/RESTREF/RESTinput#services.2Fcollector.2Fs2s" target="_blank" rel="noopener"&gt;/services/collector/s2s&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That explains why your troubleshooting on the /event endpoint worked.&lt;/P&gt;&lt;P&gt;Sadly you cannot use curl in the same way to send test data to the /s2s endpoint as you could with the /event endpoint, as splunk expects a different format on /s2s.&lt;/P&gt;&lt;P&gt;But if the endpoint is available, a curl with the right token in the header should at least give you this response:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{"count":0,"text":"Invalid data format","code":6}&lt;/LI-CODE&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 16:47:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/528854#M4111</guid>
      <dc:creator>BorisGrochalski</dc:creator>
      <dc:date>2020-11-10T16:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/578649#M10967</link>
      <description>&lt;P&gt;Same issue, did you were able to solve it?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;12-16-2021 16:23:59.872 +0100 ERROR S2SOverHttpOutputProcessor [1631141 parsing] - HTTP 502 Bad Gateway&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 16 Dec 2021 16:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/578649#M10967</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2021-12-16T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/599722#M12722</link>
      <description>&lt;P&gt;We have solved the issue with this config.&lt;/P&gt;&lt;P&gt;Note: in server.conf better to first test with&amp;nbsp;proxy_rules = * and then restrict&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;server.conf

[proxyConfig]
http_proxy = http://ip:port
https_proxy = http://ip:port
proxy_rules = *
no_proxy = localhost, 127.0.0.1, ::1&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;outputs.conf

[httpout]
httpEventCollectorToken = XXXX-XXXX-XXXX-XXXX-XXXX
uri = https://yourdomain.com&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had to put Splunk UF in DEBUG mode and it seems Splunk by itself append the “/services/collector/s2s”, so there is no need to add it in the httpout uri config:&lt;/P&gt;&lt;P&gt;12-21-2021 19:01:38.193 +0100 DEBUG S2SOverHttpOutputProcessor - S2SHttp Json transaction uri=&lt;A href="https://yourdomain.com" target="_blank"&gt;https://yourdomain.com&lt;/A&gt;&lt;STRONG&gt;/services/collector/s2s&lt;/STRONG&gt;, with sending size: 373645&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2022 09:27:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/599722#M12722</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2022-05-30T09:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/600152#M12753</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190239"&gt;@edoardo_vicendo&lt;/a&gt;&amp;nbsp;we are facing the same issue, but I see the same error even after adding the proxy config under server.conf..&lt;/P&gt;&lt;P&gt;ERROR S2SOverHttpOutputProcessor - HTTP 502 Bad Gateway&lt;/P&gt;&lt;P&gt;here's my outputs.conf file..&lt;/P&gt;&lt;PRE&gt;[httpout]&lt;BR /&gt;httpEventCollectorToken = ###khldkhfkahl979797####&lt;BR /&gt;uri = https://10.x.x.x:443&lt;BR /&gt;batchSize = 32768&lt;BR /&gt;batchTimeout = 10&lt;/PRE&gt;&lt;P&gt;it's a network load balancer on AWS, are you using the same kind of load balancer.??&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 18:14:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/600152#M12753</guid>
      <dc:creator>prakash007</dc:creator>
      <dc:date>2022-06-01T18:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/600465#M12767</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149129"&gt;@prakash007&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You probably don't need to declare the port in uri config, the 443 is the default one for https connection.&lt;/P&gt;&lt;P&gt;By the way, even with the correct configuration I posted previously we were getting an HTTP 502 Bad Gateway error. Our Use Case was to export some logs from an on premise Data Center to a third party Splunk installation hosted in AWS. The target was hosted in AWS, with a Load Balancer and a WAF in front but the modification were in charge to the&amp;nbsp;third party admin, and as far as I know they did some modification in the WAF rules to avoid the HTTP 502.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 12:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/600465#M12767</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2022-06-03T12:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/675487#M18491</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/149129"&gt;@prakash007&lt;/a&gt;&amp;nbsp;You posted this over a year ago but I'd like to know if you managed to solve this issue?&lt;BR /&gt;I've similar setup and getting HTTP 502 Bad Gateway&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 10:33:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/675487#M18491</guid>
      <dc:creator>shahzadarif</dc:creator>
      <dc:date>2024-01-26T10:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692309#M19723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190239"&gt;@edoardo_vicendo&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Do you still have your working setup?&lt;/P&gt;&lt;P&gt;Do you find that introspection logs from the HEC receiver instances report metrics for tokens used by "&lt;SPAN&gt;/services/collector/raw" and "/services/collector/event", but not "/services/collector/s2s" ?&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;index="_introspection" component=HttpEventCollector data.token_name=*&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692309#M19723</guid>
      <dc:creator>nunoaragao</dc:creator>
      <dc:date>2024-07-03T14:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Configure Universal forwarder 8.1.0 to send data over HTTP?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692320#M19724</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/31038"&gt;@nunoaragao&lt;/a&gt;&amp;nbsp;, unfortunately I don't have access anymore to the Splunk UF to perform a check.&lt;/P&gt;&lt;P&gt;Never had access to the third party Splunk where we were sending the data.&lt;/P&gt;&lt;P&gt;By the way I didn't really get which is the issue you are facing.&lt;/P&gt;&lt;P&gt;Please remember that in outputs.conf you don't have to explicit the HEC endpoint (&lt;STRONG&gt;/services/collector/s2s&lt;/STRONG&gt;) but just the URI (&lt;A href="https://yourdomain.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://yourdomain.com&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uri=&lt;/SPAN&gt;&lt;A href="https://yourdomain.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://yourdomain.com&lt;/A&gt;&lt;STRIKE&gt;&lt;STRONG&gt;/services/collector/s2s&lt;/STRONG&gt;&lt;/STRIKE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 16:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692320#M19724</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2024-07-03T16:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Configure Universal forwarder 8.1.0 to send data over HTTP?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692321#M19725</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190239"&gt;@edoardo_vicendo&lt;/a&gt;&amp;nbsp;, thanks for the reply.&lt;/P&gt;&lt;P&gt;Yeah, no issue with the sending of data. Like you, we managed to crack it.&lt;BR /&gt;But the HEC that receives the data is also receiving from an appliance and a AWS Firehose, on two other input tokens. Using the Splunk search I sent, I'm able to see metrics for connections, bytes ingested and parsing errors for those two other tokens, but NONE from the token used by the UF using S2S over HTTP.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 16:30:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692321#M19725</guid>
      <dc:creator>nunoaragao</dc:creator>
      <dc:date>2024-07-03T16:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Configure Universal forwarder 8.1.0 to send data over HTTP?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692328#M19726</link>
      <description>&lt;P&gt;You are welcome.&lt;/P&gt;&lt;P&gt;I would try checking based on what is written here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Data/TroubleshootHTTPEventCollector" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Data/TroubleshootHTTPEventCollector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In particular:&lt;/P&gt;&lt;P&gt;1- Check if HEC token is enabled (I guess so :-))&lt;/P&gt;&lt;P&gt;2- Verify if ACK is enabled&lt;/P&gt;&lt;P&gt;3- Look at the log file directly in the machine&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$SPLUNK_HOME/var/log/introspection/splunk/http_event_collector_metrics.log&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4- Run a more general query&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index="_introspection" token&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5- Enable logs in DEBUG&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 16:54:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692328#M19726</guid>
      <dc:creator>edoardo_vicendo</dc:creator>
      <dc:date>2024-07-03T16:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Configure Universal forwarder 8.1.0 to send data over HTTP</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692746#M19738</link>
      <description>&lt;P&gt;Dislike to reply to my own comment, but I got an answer from Splunk Support.&lt;/P&gt;&lt;P data-unlink="true"&gt;HTTP Event Collector does NOT log metrics from UF sending data over HTTP, and this is reported on internal ticket&amp;nbsp;SPL-239230&amp;nbsp;: "&lt;SPAN&gt;&lt;EM&gt;No metrics are sent to the http_event_collector_metrics.log&lt;/EM&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;which has been in backlog since 2023.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 10:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-do-I-Configure-Universal-forwarder-8-1-0-to-send-data-over/m-p/692746#M19738</guid>
      <dc:creator>nunoaragao</dc:creator>
      <dc:date>2024-07-09T10:46:45Z</dc:date>
    </item>
  </channel>
</rss>

