<?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 Getting two different host values for same host. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342237#M63040</link>
    <description>&lt;P&gt;I am getting two separate values in host field for the same host!&lt;/P&gt;

&lt;P&gt;Both the values are:&lt;/P&gt;

&lt;P&gt;Hostname and hostname.&lt;/P&gt;

&lt;P&gt;I am not sure why it is coming because I am getting logs from only one host via Splunk Universal Forwarder but still in splunk I am getting two different values for them.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 05:45:41 GMT</pubDate>
    <dc:creator>jet1276</dc:creator>
    <dc:date>2018-02-01T05:45:41Z</dc:date>
    <item>
      <title>Getting two different host values for same host.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342237#M63040</link>
      <description>&lt;P&gt;I am getting two separate values in host field for the same host!&lt;/P&gt;

&lt;P&gt;Both the values are:&lt;/P&gt;

&lt;P&gt;Hostname and hostname.&lt;/P&gt;

&lt;P&gt;I am not sure why it is coming because I am getting logs from only one host via Splunk Universal Forwarder but still in splunk I am getting two different values for them.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 05:45:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342237#M63040</guid>
      <dc:creator>jet1276</dc:creator>
      <dc:date>2018-02-01T05:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Getting two different host values for same host.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342238#M63041</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;You will need to create/edit the following files in $SPLUNK_HOME/etc/apps//local/:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;NOTE: the following is just an example and should be modified to meet your requirements, using the relevant spec files for assistance:&lt;/P&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [yourSourceTypeHere]
 TRANSFORM-hostnametrans = hostoverride
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [hostoverride]
 REGEX = \w+\s+\d+\s+\d+\:\d+\:\d+\s+(?P&amp;lt;host&amp;gt;[^ ])
 FORMAT = host::$1
 DEST_KEY = MetaData:Host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You will need to restart Splunk to apply this change.&lt;/P&gt;

&lt;P&gt;The following docs should be of use here...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Data/overridedefaulthostassignments"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/Data/overridedefaulthostassignments&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/admin/Propsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/admin/Propsconf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/admin/Transformsconf"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/admin/Transformsconf&lt;/A&gt;&lt;BR /&gt;
refer: &lt;A href="https://answers.splunk.com/answers/65379/override-host-field-value-at-search-time.html"&gt;https://answers.splunk.com/answers/65379/override-host-field-value-at-search-time.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 05:57:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342238#M63041</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-01T05:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Getting two different host values for same host.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342239#M63042</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am aware with the host change methods. And I am not looking for solution to the problem.&lt;/P&gt;

&lt;P&gt;What i would like to know is that the reason behind the problem. Because the logs are being forwarded from only 1 server that is also via Universal Forwarder. Then why am I getting two different host values.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 05:56:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342239#M63042</guid>
      <dc:creator>jet1276</dc:creator>
      <dc:date>2018-02-02T05:56:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting two different host values for same host.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342240#M63043</link>
      <description>&lt;P&gt;is there any &lt;CODE&gt;host&lt;/CODE&gt; keyword present in your events...which is overriding it&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:06:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342240#M63043</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-02-02T06:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting two different host values for same host.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342241#M63044</link>
      <description>&lt;P&gt;No I am not overriding the data anywhere. And the installation of Universal Forwarder was also through GUI. So not overriding through any configuration files.&lt;/P&gt;

&lt;P&gt;Also the data I am fetching are simple Windows Log Events which doesn't have other &lt;CODE&gt;host&lt;/CODE&gt; keyword which can override the data.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:18:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Getting-two-different-host-values-for-same-host/m-p/342241#M63044</guid>
      <dc:creator>jet1276</dc:creator>
      <dc:date>2018-02-02T06:18:15Z</dc:date>
    </item>
  </channel>
</rss>

