<?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: transforms.conf set hostname to current host in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506611#M86241</link>
    <description>That you're using a deployment server tells me the transforms.conf file is on a universal forwarder. If so, it's not working because UFs do not perform transforms. That's done by indexers and HFs.</description>
    <pubDate>Tue, 30 Jun 2020 00:45:19 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-06-30T00:45:19Z</dc:date>
    <item>
      <title>transforms.conf set hostname to current host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506602#M86240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to use environment variables within transforms.conf. I am trying to override the hostname to the hostname of the forwarder which receives it.&lt;/P&gt;&lt;P&gt;I'm using the following. However, this doesn't seem to be working. The conf files are distributed from a deployment server, so I don't want to hard-code the host names&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[hostoverride]
DEST_KEY = MetaData:Host
REGEX = .
FORMAT = host::$HOSTNAME&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jun 2020 22:42:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506602#M86240</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2020-06-29T22:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf set hostname to current host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506611#M86241</link>
      <description>That you're using a deployment server tells me the transforms.conf file is on a universal forwarder. If so, it's not working because UFs do not perform transforms. That's done by indexers and HFs.</description>
      <pubDate>Tue, 30 Jun 2020 00:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506611#M86241</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-06-30T00:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf set hostname to current host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506612#M86242</link>
      <description>&lt;P&gt;I don't have good news for you, but I do have some questions.&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Sadly, I suspect what you are trying to do is outside the scope of transforms, especially when using a deployment server.&lt;BR /&gt;&lt;BR /&gt;1.&amp;nbsp; Is this a heavyweight forwarder, or a universal forwarder?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;1a. If a Heavyweight, then how is the data being sent to it? From another forwarder?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;1a1. If from a UF, then I suspect you'll have to write different apps, one for each HF.&amp;nbsp; This is far from ideal, but will get the job done. Hopefully you don't have too many HFs to have to create for these rules.&lt;BR /&gt;&amp;nbsp; &amp;nbsp;1a2. If from a syslog or networking device you can just use the default hostname and the HF's hostname will be applied.&lt;BR /&gt;&lt;BR /&gt;1b. If this is a universal forwarder, then is the data coming from another UF, or something like a syslog device?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; 1b1.&amp;nbsp; If from another UF you have issues coming. I don't think you can make this work.&lt;BR /&gt;&amp;nbsp; 1b2. If from a syslog or network device, then use the default hostname, which will default to the forwarder.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Maybe someone else will have a better answer for you.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 00:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506612#M86242</guid>
      <dc:creator>msimko_splunk</dc:creator>
      <dc:date>2020-06-30T00:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf set hostname to current host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506613#M86243</link>
      <description>&lt;P&gt;Actually, This resides on a heavy forwarder.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 01:09:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506613#M86243</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2020-06-30T01:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: transforms.conf set hostname to current host</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506614#M86244</link>
      <description>&lt;P&gt;The source is HEC. The forwarders are on a load balanced url for HEC inputs. I'm trying to override the host from the LB url to the forwarder that receives it.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jun 2020 01:11:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/transforms-conf-set-hostname-to-current-host/m-p/506614#M86244</guid>
      <dc:creator>arjunpkishore5</dc:creator>
      <dc:date>2020-06-30T01:11:28Z</dc:date>
    </item>
  </channel>
</rss>

