<?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: Overriding host-field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/546052#M90973</link>
    <description>&lt;P&gt;So what your saying is he needs to use lowercase server instead of uppercase server?.?&lt;/P&gt;</description>
    <pubDate>Tue, 30 Mar 2021 17:17:40 GMT</pubDate>
    <dc:creator>Funderburg78</dc:creator>
    <dc:date>2021-03-30T17:17:40Z</dc:date>
    <item>
      <title>Overriding host-field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/545657#M90951</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have events like this:&lt;/P&gt;&lt;P&gt;server=serverA&lt;BR /&gt;field1=foo&lt;BR /&gt;field2=bar&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;And I would like to override the host-field with serverA so I configured on our indexers:&lt;/P&gt;&lt;P&gt;props.conf&lt;/P&gt;&lt;P&gt;[foo:bar]&lt;BR /&gt;DATETIME_CONFIG = CURRENT&lt;BR /&gt;LINE_BREAKER = field2=.*([\r\n]+)&lt;BR /&gt;SHOULD_LINEMERGE = false&lt;BR /&gt;TRANSFORMS-A = trans_host&lt;/P&gt;&lt;P&gt;transforms.conf&lt;/P&gt;&lt;P&gt;[trans_host]&lt;BR /&gt;REGEX = SERVER\=(\w+)$&lt;BR /&gt;FORMAT = host::$1&lt;BR /&gt;DEST_KEY = MetaData::host&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's not working.. I still get the original host-value.&lt;BR /&gt;What am I missing here?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 19:55:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/545657#M90951</guid>
      <dc:creator>dav_muel</dc:creator>
      <dc:date>2021-03-26T19:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding host-field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/545676#M90955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/227648"&gt;@dav_muel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Your problem maybe in REGEX, please try below.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[trans_host]
REGEX = server\=(\w+)
FORMAT = host::$1
DEST_KEY = MetaData::host&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 27 Mar 2021 05:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/545676#M90955</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-27T05:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding host-field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/546052#M90973</link>
      <description>&lt;P&gt;So what your saying is he needs to use lowercase server instead of uppercase server?.?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 17:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/546052#M90973</guid>
      <dc:creator>Funderburg78</dc:creator>
      <dc:date>2021-03-30T17:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Overriding host-field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/546160#M90982</link>
      <description>&lt;P&gt;Yes, because on your sample data it is uppercase. Since regex work case sensitive , it should work.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 07:54:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Overriding-host-field/m-p/546160#M90982</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-03-31T07:54:38Z</dc:date>
    </item>
  </channel>
</rss>

