<?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: Change hostname transform in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82286#M17014</link>
    <description>&lt;P&gt;Fixed the transform, thanks to &lt;A href="http://splunk-base.splunk.com/answers/24769/host-override"&gt;http://splunk-base.splunk.com/answers/24769/host-override&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;The ^ in my regex was mucking things up. The MetaData:Source source begins with text "source::". Removing the ^ to permit the "source::" at the start of the value fixed it.&lt;/P&gt;

&lt;P&gt;Still haven't gotten it to work on my UF though. Am I correct in understanding that this does not work on the UF?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Jul 2013 17:53:49 GMT</pubDate>
    <dc:creator>BryanBerry</dc:creator>
    <dc:date>2013-07-02T17:53:49Z</dc:date>
    <item>
      <title>Change hostname transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82285#M17013</link>
      <description>&lt;P&gt;We have a host where logs are aggregated already. I want to Splunk these logs. The source host for the logs is in the file path. I attempted the below props/transforms as a PoC, but no luck. Can anyone catch what I'm doing wrong?&lt;/P&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[foobar]
SOURCE_KEY = MetaData:Source
DEST_KEY = MetaData:Host
REGEX = ^/opt/splunk/v(ar)
FORMAT = host::bogus$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[boguslog]
TRANSFORMS-foo=foobar
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor:///opt/splunk/var/log/splunk/splunkd.log]
sourcetype = boguslog
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Also, would this sort of transformation work on a UF or only a HF? I was originally doing this to test for myself, but I can't get it to work on my HF in the first place.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 17:45:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82285#M17013</guid>
      <dc:creator>BryanBerry</dc:creator>
      <dc:date>2013-07-02T17:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82286#M17014</link>
      <description>&lt;P&gt;Fixed the transform, thanks to &lt;A href="http://splunk-base.splunk.com/answers/24769/host-override"&gt;http://splunk-base.splunk.com/answers/24769/host-override&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;The ^ in my regex was mucking things up. The MetaData:Source source begins with text "source::". Removing the ^ to permit the "source::" at the start of the value fixed it.&lt;/P&gt;

&lt;P&gt;Still haven't gotten it to work on my UF though. Am I correct in understanding that this does not work on the UF?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 17:53:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82286#M17014</guid>
      <dc:creator>BryanBerry</dc:creator>
      <dc:date>2013-07-02T17:53:49Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82287#M17015</link>
      <description>&lt;P&gt;Correct behavior, props and transforms are not processed by a UF .&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 19:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82287#M17015</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2013-07-02T19:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82288#M17016</link>
      <description>&lt;P&gt;Umm, aren't you making this a bit too difficult? Did you have a look at the &lt;CODE&gt;host_segment&lt;/CODE&gt; configuration directive in &lt;CODE&gt;inputs.conf&lt;/CODE&gt;?&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Admin/Inputsconf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 20:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82288#M17016</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-02T20:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname transform</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82289#M17017</link>
      <description>&lt;P&gt;You, sir, are kind of awesome. Using this with the UF actually shaves two weeks off my project by avoiding the heavy forwarder.  Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2013 21:09:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-transform/m-p/82289#M17017</guid>
      <dc:creator>BryanBerry</dc:creator>
      <dc:date>2013-07-02T21:09:16Z</dc:date>
    </item>
  </channel>
</rss>

