<?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: Why are multiple host names being reported for the same host? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257837#M49544</link>
    <description>&lt;P&gt;For someone else with this issue-- the sourcetype of "syslog" has a specific transform set up to pull out the hostname from the logs.  It doesn't use the inputs.conf or server.conf name&lt;/P&gt;

&lt;P&gt;See this answer: &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/55751/host-field-getting-overwritten-in-syslog-processing.html"&gt;https://answers.splunk.com/answers/55751/host-field-getting-overwritten-in-syslog-processing.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2019 15:57:41 GMT</pubDate>
    <dc:creator>ridwanahmed</dc:creator>
    <dc:date>2019-09-19T15:57:41Z</dc:date>
    <item>
      <title>Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257830#M49537</link>
      <description>&lt;P&gt;'Morning...&lt;BR /&gt;
I have a v6.5, clustered environment (deployment server), Universal Forwarder on all hosts.&lt;/P&gt;

&lt;P&gt;I am getting several Linux systems reporting in with two names, shortname and FQDN. But not all of them are doing this, even members of the same Server Class.&lt;/P&gt;

&lt;P&gt;It seems that all the shortnames are only pulling a &lt;STRONG&gt;sourcetype&lt;/STRONG&gt; of &lt;STRONG&gt;syslog&lt;/STRONG&gt; or &lt;STRONG&gt;linux_messages_syslog&lt;/STRONG&gt; and are only &lt;STRONG&gt;source=/var/log/messages&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;The FQDNs are showing appropriate sourcetypes and sources (all under &lt;STRONG&gt;/var/log/&lt;/STRONG&gt; -- but NOT messages).&lt;/P&gt;

&lt;P&gt;I have a very simple &lt;STRONG&gt;inputs.conf&lt;/STRONG&gt; being deployed:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log]&lt;BR /&gt;
index = servers&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;I confirmed that syslog is not configured on these to also send to my heavy forwarders. They are reporting in to the Forwarder Management interface as one system (mixture of short and FQDN).&lt;/P&gt;

&lt;P&gt;I haven't found a lot of mentions of this here -- I guess this is not very common...?&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;BR /&gt;
Thanks!&lt;BR /&gt;
Michael&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:59:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257830#M49537</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2020-09-29T11:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257831#M49538</link>
      <description>&lt;P&gt;Hi  Michael,&lt;BR /&gt;
If you have only forwarders and none syslog you have to verify the servername associated to the Splunk Forwarder.&lt;BR /&gt;
You can verify it in your servers in $SPLUNK_HOME/etc/system/local/server.conf and in $SPLUNK_HOME/etc/system/local/inputs.conf.&lt;BR /&gt;
Servername is associated at the installation time from the server hostname.&lt;BR /&gt;
If you want, you can modify it but in both the conf files.&lt;BR /&gt;
Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 11:59:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257831#M49538</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-09-29T11:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257832#M49539</link>
      <description>&lt;P&gt;Yes, I know where to find the hostname, but thanks.&lt;/P&gt;

&lt;P&gt;For what it's worth, I've confirmed that both the inputs.conf and server.conf have the FQDN of the system.&lt;/P&gt;

&lt;P&gt;Even /etc/hostname on the system has the FQDN.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Nov 2016 18:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257832#M49539</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2016-11-29T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257833#M49540</link>
      <description>&lt;P&gt;FYI, trying $decideonStartUp didn't seem to work. To recap:&lt;/P&gt;

&lt;P&gt;[monitor:///var/log]&lt;BR /&gt;
host = $decideOnStartup&lt;BR /&gt;
index = atl&lt;BR /&gt;
disabled = 0&lt;/P&gt;

&lt;P&gt;Mix of FQDN and short names sending in these:&lt;BR /&gt;
/var/log/audit/audit.log&lt;BR /&gt;
/var/log/cron&lt;BR /&gt;&lt;BR /&gt;
/var/log/mcelog&lt;BR /&gt;
/var/log/up2date&lt;BR /&gt;
/var/log/rhsm/rhsm.log&lt;BR /&gt;
etc...&lt;/P&gt;

&lt;P&gt;short only no FQDN&lt;BR /&gt;
/var/log/messages&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 14:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257833#M49540</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-03-13T14:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257834#M49541</link>
      <description>&lt;P&gt;Are some of the logs duplicated, or is it either/or?&lt;/P&gt;

&lt;P&gt;If either/or, then can you post sanitized versions of each kind?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 15:15:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257834#M49541</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-13T15:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257835#M49542</link>
      <description>&lt;P&gt;None of them are duplicated.&lt;/P&gt;

&lt;P&gt;Of the three specific ones (in this section of my organization) that I'm narrowing down on, they send everything fine from /var/log/ using their FQDN -- but only the /var/log/messages file is reported using the short-name. They have other Linux (RHEL and CentOs) in that area that are reporting in using shortnames only. I'm trying to find out how they're different...&lt;/P&gt;

&lt;P&gt;Ah, I see why you wanted a sample of the logs -- the /var/log/message file &lt;STRONG&gt;&lt;EM&gt;does&lt;/EM&gt;&lt;/STRONG&gt; include the hostname (short) -- seems that Splunk is pulling the name from there.(?) In the other log files, it does &lt;STRONG&gt;&lt;EM&gt;not&lt;/EM&gt;&lt;/STRONG&gt; included a name -- so it's getting it from DNS (hence, the FQDN).&lt;/P&gt;

&lt;P&gt;i.e.: &lt;BR /&gt;
Mar 13 06:18:29 &lt;STRONG&gt;servername&lt;/STRONG&gt; dhclient[2958]: DHCPACK from 10.14.8.82 (xid=0x369db4ff)&lt;BR /&gt;
v.s.&lt;BR /&gt;
type=CRED_DISP msg=audit(1489419002.019:169929): user pid=26065 uid=0 auid=0 ses=25846 msg='op=PAM:setcred acct="root" exe="/usr/sbin/crond" hostname=? addr=? terminal=cron res=success'&lt;/P&gt;

&lt;P&gt;Is that where you were going with that? I still see other hosts in the same area that are reporting with the same syntax -- but they're &lt;EM&gt;not&lt;/EM&gt; producing duplicate names.&lt;/P&gt;

&lt;P&gt;OK, now, how to fix that?&lt;/P&gt;

&lt;P&gt;(I love it when I'm apparently the only one "out there" that's experienced are particular issue... &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2017 15:40:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257835#M49542</guid>
      <dc:creator>Michael</dc:creator>
      <dc:date>2017-03-13T15:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257836#M49543</link>
      <description>&lt;P&gt;Did you ever find a solution to this?  I'm having a similar issue-- only &lt;CODE&gt;source=var/log/messages&lt;/CODE&gt; goes to host=hostname, while the other logs have host=fqdn&lt;/P&gt;

&lt;P&gt;my inputs.conf--the only place where this host name is defined (it's not in server.conf)&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;[default] &lt;BR /&gt;
host = myhost.mydomain.com&lt;BR /&gt;
 [monitor:///var/log/messages] &lt;BR /&gt;
disabled = false &lt;BR /&gt;
sourcetype = syslog &lt;BR /&gt;
index = myindex_1&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;[monitor:///usr/local/tomcat/logs/logname.log] &lt;BR /&gt;
disabled = false &lt;BR /&gt;
sourcetype = log4j i&lt;BR /&gt;
index = myindex_2&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Thanks for any comments.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 14:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257836#M49543</guid>
      <dc:creator>ridwanahmed</dc:creator>
      <dc:date>2019-09-19T14:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why are multiple host names being reported for the same host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257837#M49544</link>
      <description>&lt;P&gt;For someone else with this issue-- the sourcetype of "syslog" has a specific transform set up to pull out the hostname from the logs.  It doesn't use the inputs.conf or server.conf name&lt;/P&gt;

&lt;P&gt;See this answer: &lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/55751/host-field-getting-overwritten-in-syslog-processing.html"&gt;https://answers.splunk.com/answers/55751/host-field-getting-overwritten-in-syslog-processing.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-multiple-host-names-being-reported-for-the-same-host/m-p/257837#M49544</guid>
      <dc:creator>ridwanahmed</dc:creator>
      <dc:date>2019-09-19T15:57:41Z</dc:date>
    </item>
  </channel>
</rss>

