<?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: How do I Host name override HTTP Event Collector? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638972#M109108</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;HF parses events so they're sent as parsed to the downstream indexers and are _not_ parsed anymore.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This would be the answer btw. I'm confident that UF does it in the same way when using the `\event` endpoint. However Transforms on UF are not supported as far as I know.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Apr 2023 08:18:05 GMT</pubDate>
    <dc:creator>dsfyxcasdcertzu</dc:creator>
    <dc:date>2023-04-06T08:18:05Z</dc:date>
    <item>
      <title>How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638676#M109059</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;We're running localhost Http Event Collectors on UF for Docker Containers on the same host. However I'm unable to override the hostname from these Events. Unfortunately there is no flag to do so in the docker daemon. Therefor I've tried to do it on the Forwarder as well as on the indexer. Both unsuccessful.&lt;BR /&gt;&lt;BR /&gt;On the Forwarder:&lt;/P&gt;
&lt;P&gt;/opt/splunkforwarder/etc/apps/splunk_httpinput/default/inputs.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[http]
host = wantedHostName
disabled=0
port = 8088
enableSSL=0
dedicatedIoThreads=2
maxThreads = 0
maxSockets = 0
useDeploymentServer=0&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/opt/splunkforwarder/etc/apps/splunk_httpinput/local/inputs.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[http://localhost]
host = wantedHostName
description = &amp;lt;desc&amp;gt;
disabled = 0
index = main
token = &amp;lt;token&amp;gt;
useACK = false&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;On the indexer:&lt;/P&gt;
&lt;P&gt;/opt/splunk/etc/system/local/props.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[host::badHostName]
TRANSFORMS-badhost = badHostName&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/opt/splunk/etc/system/local/transforms.conf&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[badHostName]
DEST_KEY = MetaData:Host
REGEX = *
FORMAT = host::wantedHostName&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;None of these work. Can someone please help us out?&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 16:58:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638676#M109059</guid>
      <dc:creator>dsfyxcasdcertzu</dc:creator>
      <dc:date>2023-04-05T16:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Host name override HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638820#M109086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253158"&gt;@dsfyxcasdcertzu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;To run transform for HEC inputs, your client application must use "raw" endpoint on HEC output. &amp;nbsp;If you are using "event" endpoint it is not possible to change anything on the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 11:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638820#M109086</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-04-05T11:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638868#M109092</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/206061"&gt;@scelikok&lt;/a&gt;&amp;nbsp; for your quick response!&lt;BR /&gt;&lt;BR /&gt;So essentially there is no way to override the host name when using the default docker/splunk logging&amp;nbsp; driver.&lt;BR /&gt;I've tried the extended &lt;A href="https://github.com/splunk/docker-logging-plugin/blob/f376affbeb8fa210d38cc1657014f1a9cbf2fb79/splunk_logger.go#L411" target="_blank" rel="noopener"&gt;docker-logging-plugin&lt;/A&gt; with the (undocumented) path flag in combination with the raw endpoint of HEC but this would prerequisite to transform the complete transactions content.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 17:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638868#M109092</guid>
      <dc:creator>dsfyxcasdcertzu</dc:creator>
      <dc:date>2023-04-05T17:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638936#M109101</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/253158"&gt;@dsfyxcasdcertzu&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes, raw endpoint causes message to change. You can try using env field for setting correct hostname. It will not change host value but you will be able to query the real hostname.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.docker.com/config/containers/logging/splunk/" target="_blank"&gt;https://docs.docker.com/config/containers/logging/splunk/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 04:08:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638936#M109101</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-04-06T04:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Host name override HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638937#M109102</link>
      <description>&lt;P&gt;Sorry, but I strongly disagree here. HEC is just another input and it the event goes through most of the processing stages. It bypasses line breaking and - unless explicitly enabled by url parameter - date parsing.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 04:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638937#M109102</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-06T04:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638938#M109103</link>
      <description>&lt;P&gt;What kind of forwarder do you have there? UF doesn't have HEC inputs. HF parses events so they're sent as parsed to the downstream indexers and are _not_ parsed anymore.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 04:23:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638938#M109103</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-06T04:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638967#M109105</link>
      <description>&lt;P&gt;Hi, &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt; ,&lt;/P&gt;&lt;P&gt;I'm indeed running UF v9.0.4. on a Linux client. I know that HEC on UF is not supported on paper but since the app was pre-shipped in the bundle I've tried it and it works just fine. Also in on other (Linux-) machines.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;This way we don't have to mess with certificates for docker logs because the port is http and localhost only on the client with it the outputs getting securely forwarded with the other outputs of the UF.&lt;BR /&gt;&lt;BR /&gt;Nonetheless, transforming attempts were done on the indexer.&lt;BR /&gt;&lt;BR /&gt;Best&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:03:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638967#M109105</guid>
      <dc:creator>dsfyxcasdcertzu</dc:creator>
      <dc:date>2023-04-06T08:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638972#M109108</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;HF parses events so they're sent as parsed to the downstream indexers and are _not_ parsed anymore.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This would be the answer btw. I'm confident that UF does it in the same way when using the `\event` endpoint. However Transforms on UF are not supported as far as I know.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 08:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638972#M109108</guid>
      <dc:creator>dsfyxcasdcertzu</dc:creator>
      <dc:date>2023-04-06T08:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I Host name override HTTP Event Collector?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638982#M109111</link>
      <description>&lt;P&gt;I must say I'm puzzled. HEC is not supposed to work on UF. If it is, I'm wondering myself what data it sends downstream because since it's a non-parsing component it should just send cooked data and parsing should be done on the first "heavy" component in event's path. So if you're sending to indexers, the events should be properly modified there according to props/transforms.&lt;/P&gt;&lt;P&gt;Anyway, the default metadata fields manipulation can sometimes be tricky. I always add WRITE_META to the transform stanza.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 09:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638982#M109111</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-06T09:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: Host name override HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638991#M109112</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It is not stated in documents but HEC event endpoint skips TRANSFORMS.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 10:56:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/638991#M109112</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2023-04-06T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Host name override HTTP Event Collector</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/639017#M109115</link>
      <description>&lt;P&gt;Sorry, but no. Whole functionality of SC4S (or my rsyslog-based solution) depends on transforms working properly on HEC-based events. So no. Transforms do work normally on HEC-ingested data.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 12:22:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-Host-name-override-HTTP-Event-Collector/m-p/639017#M109115</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-04-06T12:22:12Z</dc:date>
    </item>
  </channel>
</rss>

