<?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: strip fqdn from hostname field in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218249#M96154</link>
    <description>&lt;P&gt;Hi hanijamal,&lt;BR /&gt;
I don't know if you can intervene on your forwarders, but the hostname is setted in two conf files sited in $SPLUNK_HOME/etc/system/local:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;output.conf&lt;/LI&gt;
&lt;LI&gt;inputs.conf
Your should verify what is the hostname you receive.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you cannot modify hostname in your forwarders, the only way is to override hosts using props.conf and transforms.conf (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Overridedefaulthostassignments#Configuration):"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Overridedefaulthostassignments#Configuration):&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2017 08:33:46 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2017-01-04T08:33:46Z</dc:date>
    <item>
      <title>strip fqdn from hostname field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218247#M96152</link>
      <description>&lt;P&gt;hey guys, i am pretty sure we have something in place which is stripping the hostname from the fqdn. just cannot figure it out.&lt;/P&gt;

&lt;P&gt;for example host=ab12345.domain.com gets stripped and when searched only shows host=ab12345&lt;/P&gt;

&lt;P&gt;we have a few thousand hosts that are coming in fine, however a handful show up WITH fqdn when i make a search.&lt;/P&gt;

&lt;P&gt;why would only a few hosts be showing with fqdn when 99% are showing in search fine.&lt;/P&gt;

&lt;P&gt;background: we have a host data coming in from ucmd via lookup&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 03:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218247#M96152</guid>
      <dc:creator>hanijamal</dc:creator>
      <dc:date>2017-01-04T03:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: strip fqdn from hostname field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218248#M96153</link>
      <description>&lt;P&gt;transforms.conf and props.conf might be the right place to start with and from. Please have a look here:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Overridedefaulthostassignments#Configuration"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Overridedefaulthostassignments#Configuration&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 06:01:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218248#M96153</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-04T06:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: strip fqdn from hostname field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218249#M96154</link>
      <description>&lt;P&gt;Hi hanijamal,&lt;BR /&gt;
I don't know if you can intervene on your forwarders, but the hostname is setted in two conf files sited in $SPLUNK_HOME/etc/system/local:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;output.conf&lt;/LI&gt;
&lt;LI&gt;inputs.conf
Your should verify what is the hostname you receive.&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;If you cannot modify hostname in your forwarders, the only way is to override hosts using props.conf and transforms.conf (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Overridedefaulthostassignments#Configuration):"&gt;https://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Overridedefaulthostassignments#Configuration):&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 08:33:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218249#M96154</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2017-01-04T08:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: strip fqdn from hostname field</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218250#M96155</link>
      <description>&lt;P&gt;for logs which are not yet indexed, you can use props and transform, as mentioned above. &lt;/P&gt;

&lt;P&gt;for the data which is already indexed, you can use regular expressions to pick only the hostnames&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search | rex field=_raw "host=(?&amp;lt;hostname&amp;gt;\w+)\." | table _raw hostname
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 09:23:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/strip-fqdn-from-hostname-field/m-p/218250#M96155</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2017-01-04T09:23:49Z</dc:date>
    </item>
  </channel>
</rss>

