<?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: Change hostname for syslog sourcetype ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85930#M97205</link>
    <description>&lt;P&gt;Thanks for the answer - using the related questions helped a lot.  Also key piece of info was that SplunkLightForwarders do not apply transforms.  The transforms get applied on the indexer.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Nov 2010 00:07:05 GMT</pubDate>
    <dc:creator>frankejj</dc:creator>
    <dc:date>2010-11-11T00:07:05Z</dc:date>
    <item>
      <title>Change hostname for syslog sourcetype ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85927#M97202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to override the default hostname that is being set for the syslog entries on /var/log/messages.  These are the only entries that are being indexed with 'hostname' instead of 'hostname.fqdn'&lt;/P&gt;

&lt;P&gt;I have tried the following:&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;$SPLUNKHOME/etc/system/local/props.conf:&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;     [syslog]&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;     TRANSFORMS =&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;RESULT: No difference&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SPLUNKHOME/etc/system/local/props.conf:&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[source::/var/log/messages]&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;# note: overriding default syslog transform!&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TRANSFORMS = something&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;$SPLUNKHOME/etc/system/local/transforms.conf&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[something]&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;DEST_KEY = MetaData:Host&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;REGEX = .&lt;BR /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FORMAT = host::hostname.fqdn&lt;BR /&gt;&lt;/P&gt;

&lt;P&gt;RESULT: No difference&lt;/P&gt;

&lt;P&gt;Am I missing something?&lt;/P&gt;

&lt;P&gt;Thanks,
John&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 05:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85927#M97202</guid>
      <dc:creator>frankejj</dc:creator>
      <dc:date>2010-11-09T05:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname for syslog sourcetype ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85928#M97203</link>
      <description>&lt;P&gt;You realize that once the events are indexed they will not be changed by any configuration change.  You will have to restart, and then only newly loaded events will have any change.&lt;/P&gt;

&lt;P&gt;Otherwise, it looks like what you are trying should work.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update:&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;The one thing I'm not sure about is exactly how the &lt;CODE&gt;TRANSFORMS&lt;/CODE&gt; is being overwritten.  The default config for &lt;CODE&gt;syslog&lt;/CODE&gt;, which I'm assuming it the sourcetype you are using, uses the "syslog-host" transformer to extract the "host" value from the event text.  Of the top of my head, I'm not sure which setting should win in a source vs sourcetype matching precedent like this (normally I try to avoid this kind of conflict.)  Using &lt;CODE&gt;btool&lt;/CODE&gt; and &lt;CODE&gt;splunk test sourcetype /var/log/messages&lt;/CODE&gt; could be shed some light on the situation.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Related answers:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="http://answers.splunk.com/questions/1673/hostname-rename-using-transforms/1686#1686" rel="nofollow"&gt;http://answers.splunk.com/questions/1673/hostname-rename-using-transforms/1686#1686&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="http://answers.splunk.com/questions/4075/whats-the-best-way-to-track-down-props-conf-problems" rel="nofollow"&gt;http://answers.splunk.com/questions/4075/whats-the-best-way-to-track-down-props-conf-problems&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 09 Nov 2010 05:29:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85928#M97203</guid>
      <dc:creator>Lowell</dc:creator>
      <dc:date>2010-11-09T05:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname for syslog sourcetype ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85929#M97204</link>
      <description>&lt;P&gt;Yes, I realize this.  Even after the changes above the new syslog entries are still being indexed as hostname not as hostname.fqdn as I would expect.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Nov 2010 20:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85929#M97204</guid>
      <dc:creator>frankejj</dc:creator>
      <dc:date>2010-11-09T20:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change hostname for syslog sourcetype ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85930#M97205</link>
      <description>&lt;P&gt;Thanks for the answer - using the related questions helped a lot.  Also key piece of info was that SplunkLightForwarders do not apply transforms.  The transforms get applied on the indexer.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2010 00:07:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Change-hostname-for-syslog-sourcetype/m-p/85930#M97205</guid>
      <dc:creator>frankejj</dc:creator>
      <dc:date>2010-11-11T00:07:05Z</dc:date>
    </item>
  </channel>
</rss>

