<?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: Hostname in /var/log/messages in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-in-var-log-messages/m-p/492715#M99859</link>
    <description>&lt;P&gt;Find out and comment below line in props.conf under sourcetype or source matching /var/log/messages stanza and restart splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-&amp;lt;some_unique_name&amp;gt; = syslog-host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Mar 2020 03:00:19 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-18T03:00:19Z</dc:date>
    <item>
      <title>Hostname in /var/log/messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-in-var-log-messages/m-p/492714#M99858</link>
      <description>&lt;P&gt;All, &lt;/P&gt;

&lt;P&gt;The  default hostname should be fine for my use cases with /var/log/messages brought in with the pretrained sourcetype of linux_messages_syslog. How ever there is a host overwrite in the default install of Splunk. Is there a formal way to disable this? &lt;/P&gt;

&lt;P&gt;This stanza is in /opt/splunk/etc/system/default. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog-host]
DEST_KEY = MetaData:Host
REGEX = :\d\d\s+(?:\d+\s+|(?:user|daemon|local.?)\.\w+\s+)*\[?(\w[\w\.\-]{2,})\]?\s
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was just going to create a local transforms.conf that uses a different variable, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog-host]
DEST_KEY = MetaData:Extracted_Host
REGEX = :\d\d\s+(?:\d+\s+|(?:user|daemon|local.?)\.\w+\s+)*\[?(\w[\w\.\-]{2,})\]?\s
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but figure I can't be the first person to run into this. So probably a better way to do it. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-in-var-log-messages/m-p/492714#M99858</guid>
      <dc:creator>daniel333</dc:creator>
      <dc:date>2020-09-30T04:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname in /var/log/messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-in-var-log-messages/m-p/492715#M99859</link>
      <description>&lt;P&gt;Find out and comment below line in props.conf under sourcetype or source matching /var/log/messages stanza and restart splunk.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TRANSFORMS-&amp;lt;some_unique_name&amp;gt; = syslog-host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Mar 2020 03:00:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-in-var-log-messages/m-p/492715#M99859</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-18T03:00:19Z</dc:date>
    </item>
  </channel>
</rss>

