<?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 How do I alias the hostname and FQDN as the same machine? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-alias-the-hostname-and-FQDN-as-the-same-machine/m-p/125227#M25830</link>
    <description>&lt;P&gt;I'm getting events that show sources as the hosts, but Splunk is indicating that the simple hostname and the FQDN are different sources.  I want Splunk to know that the simple hostname and the FQDN are the same host machine and combine events to be from one source.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Nov 2014 13:45:49 GMT</pubDate>
    <dc:creator>cdyates</dc:creator>
    <dc:date>2014-11-21T13:45:49Z</dc:date>
    <item>
      <title>How do I alias the hostname and FQDN as the same machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-alias-the-hostname-and-FQDN-as-the-same-machine/m-p/125227#M25830</link>
      <description>&lt;P&gt;I'm getting events that show sources as the hosts, but Splunk is indicating that the simple hostname and the FQDN are different sources.  I want Splunk to know that the simple hostname and the FQDN are the same host machine and combine events to be from one source.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Nov 2014 13:45:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-alias-the-hostname-and-FQDN-as-the-same-machine/m-p/125227#M25830</guid>
      <dc:creator>cdyates</dc:creator>
      <dc:date>2014-11-21T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do I alias the hostname and FQDN as the same machine?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-alias-the-hostname-and-FQDN-as-the-same-machine/m-p/125228#M25831</link>
      <description>&lt;P&gt;You could define a transforms.conf rule like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[fqdn_to_hostname]
SOURCE_KEY = MetaData:Host
REGEX = ^host::(.+)\.company\.com$
DEST_KEY = MetaData:Host
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and apply that to all relevant hosts in props.conf like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[host::*.company.com]
TRANSFORMS-fqdn = fqdn_to_hostname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Nov 2014 18:04:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-alias-the-hostname-and-FQDN-as-the-same-machine/m-p/125228#M25831</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-22T18:04:52Z</dc:date>
    </item>
  </channel>
</rss>

