<?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: Simple host field change - does not work in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331089#M61337</link>
    <description>&lt;P&gt;Does the host name exactly matches &lt;CODE&gt;vsp.my-domain.de&lt;/CODE&gt; in your events? Do you want to do it for any specific sourcetype OR all sourcetypes? &lt;/P&gt;

&lt;P&gt;Also, if the host name is correct, give this a try. I generally prefer more friendly stanza names.&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::vsp.my-domain.de]
TRANSFORMS-host_rename = host_rename_vsp_my_domain_de
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [host_rename_vsp_my_domain_de]
 REGEX = .
 DEST_KEY = MetaData:Host
 FORMAT = host::somehost.local.lan
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Apr 2017 21:31:29 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-04-17T21:31:29Z</dc:date>
    <item>
      <title>Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331082#M61330</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;

&lt;P&gt;so I'm rather new to Splunk, and we're implementing a small cluster for logfile collection and SIEM purposes.&lt;BR /&gt;
One of our systems is a MobileIron Core Appliance, which features a built-in Splunk forwarder 6.0.3, while the rest of our Splunk system is running 6.5.3.&lt;BR /&gt;
This system is using a fixed hostname for the events forwarded to our Splunk system, and the system automatically uses the configured (external) system name, but I'd like to use our internal host name for these events.&lt;/P&gt;

&lt;P&gt;So, following the documentation and a few threads here on Splunk answers, I tried to set up the following:&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::vsp.my-domain.de]
TRANSFORMS-host_rename = host_rename-vsp.my-domain.de
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host_rename-vsp.my-domain.de]
REGEX = .
DEST_KEY = MetaData:Host
FORMAT = host::somehost.local.lan
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This all is being distributed by the cluster master through the cluster bundle - I verified the files on the indexers.&lt;BR /&gt;
Still, all events show up with the original hostname.&lt;/P&gt;

&lt;P&gt;I have this in the cluster bundle to:&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::10.0.1.2]
TRANSFORMS-drop = drop-loadbalancer

[host::10.0.1.3]
TRANSFORMS-drop = drop-loadbalancer
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[drop-loadbalancer]
REGEX = .
DEST_KEY = queue
FORMAT = nullQueue
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;These change works perfectly fine, so I'm pretty sure it's not an issue with the cluster distribution or the regex.&lt;/P&gt;

&lt;P&gt;Any idea on what kind of stupid mistake I might have made?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2017 17:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331082#M61330</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2017-04-15T17:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331083#M61331</link>
      <description>&lt;P&gt;As it seems I can not edit my question, here is a pastebin of the btool output for props and transforms regarding my stanzas:&lt;BR /&gt;
&lt;A href="https://pastebin.com/GhjyqJan" target="_blank"&gt;https://pastebin.com/GhjyqJan&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I also tried to rename the stanza to host_rename_vsp to avoid any issues with "-", but to no success.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331083#M61331</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2020-09-29T13:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331084#M61332</link>
      <description>&lt;P&gt;This looks good to me; perhaps your testing assumptions are wrong.  Indexed data is immutable.  Therefore configuration changes to index-time settings (like this one) will only effect data that is indexed after the configuration changes are deployed AND after the splunk instances on the Indexers (or Heavy Forwarders) are restarted (old events will stay wrong).&lt;/P&gt;</description>
      <pubDate>Sat, 15 Apr 2017 23:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331084#M61332</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-15T23:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331085#M61333</link>
      <description>&lt;P&gt;I know this will only affect new events, but that UF is pushing events almost continously, so it's easy to monitor for it. I tried manually restarting the indexers. The one props-transform (see above) works fine - the other is still broken. I have no clue...&lt;/P&gt;</description>
      <pubDate>Sun, 16 Apr 2017 18:02:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331085#M61333</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2017-04-16T18:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331086#M61334</link>
      <description>&lt;P&gt;Try adding this to the &lt;CODE&gt;[host_rename-vsp.my-domain.de]&lt;/CODE&gt; stanza and see if it makes a difference.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SOURCE_KEY=MetaData:Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;All I can guess is that it's looking at some other field which doesn't exist.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 02:25:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331086#M61334</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-04-17T02:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331087#M61335</link>
      <description>&lt;P&gt;Hey,&lt;BR /&gt;
thanks for the suggestion. Unfortunately, I already tried that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
I must have tried each and any possible combination by now...&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:06:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331087#M61335</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2017-04-17T21:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331088#M61336</link>
      <description>&lt;P&gt;I restarted both indexers with --debug for half a minute.&lt;BR /&gt;
The log actually states that the props stanza matches:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;04-16-2017 22:09:09.085 +0200 DEBUG PropertiesMapConfig - Pattern 'host_rename_vsp' matches with priority 100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Nevertheless - no change at all.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331088#M61336</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2017-04-17T21:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331089#M61337</link>
      <description>&lt;P&gt;Does the host name exactly matches &lt;CODE&gt;vsp.my-domain.de&lt;/CODE&gt; in your events? Do you want to do it for any specific sourcetype OR all sourcetypes? &lt;/P&gt;

&lt;P&gt;Also, if the host name is correct, give this a try. I generally prefer more friendly stanza names.&lt;/P&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::vsp.my-domain.de]
TRANSFORMS-host_rename = host_rename_vsp_my_domain_de
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;/opt/splunk/etc/master-apps/_cluster/local/transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [host_rename_vsp_my_domain_de]
 REGEX = .
 DEST_KEY = MetaData:Host
 FORMAT = host::somehost.local.lan
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Apr 2017 21:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331089#M61337</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-17T21:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331090#M61338</link>
      <description>&lt;P&gt;Yes, the domain matches exactly. I even did a tcpdump to make sure that the event being sent does not include something like a weird UTF-8 character, a space or something like that, but it doesn't. My debug activity shows me that at least the props.conf stanza actually matches:&lt;BR /&gt;
    04-16-2017 22:09:09.085 +0200 DEBUG PropertiesMapConfig - Pattern 'host_rename_vsp' matches with priority 100&lt;BR /&gt;
And, as you can see - I already changed the stanza name to make sure that no strange behaviour regarding the "-" is the reason for my problems.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:41:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331090#M61338</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2020-09-29T13:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331091#M61339</link>
      <description>&lt;P&gt;The &lt;CODE&gt;host::&lt;/CODE&gt; requires the full pattern to be matched. If &lt;CODE&gt;vsp.my-domain.de&lt;/CODE&gt; is just the domain and not the actual host name, then you should add a wildcard in front to create a placeholder for hostname. (use &lt;CODE&gt;[host::*vsp.my-domain.de]&lt;/CODE&gt; instead of &lt;CODE&gt;[host::vsp.my-domain.de]&lt;/CODE&gt; in props.conf).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:46:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331091#M61339</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-04-18T14:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Simple host field change - does not work</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331092#M61340</link>
      <description>&lt;P&gt;That's actually the complete hostname. When I turned on debugging, Splunk with debug turned on actually reported that my stanza matched - so that part seems to be okay. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 14:51:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Simple-host-field-change-does-not-work/m-p/331092#M61340</guid>
      <dc:creator>bjoernhansen</dc:creator>
      <dc:date>2017-04-18T14:51:52Z</dc:date>
    </item>
  </channel>
</rss>

