<?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 lost in forwarded syslog messages in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115702#M24199</link>
    <description>&lt;P&gt;I tried on a test Splunk server, loading directly the file /var/log/secure of the syslog central server and it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now how can I correct the behaviour on the production Splunk server, receiving forwarded events?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jun 2014 14:12:33 GMT</pubDate>
    <dc:creator>micuzzu</dc:creator>
    <dc:date>2014-06-26T14:12:33Z</dc:date>
    <item>
      <title>Hostname lost in forwarded syslog messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115698#M24195</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have a central syslog server, collecting auth.* messages from many Linux hosts in the /var/log/secure file. Then they are forwarded to Splunk by a Universal Forwarder.&lt;BR /&gt;
The problem is that Splunk sees all these messages with host = "syslog server".&lt;/P&gt;

&lt;P&gt;What's the simplest method to use the real originating host, that is always present after date/time:&lt;/P&gt;

&lt;P&gt;&lt;EM&gt;Jun 23 17:52:36 host01 sshd[12447]: pam_unix(sshd:session): session opened for user jsmith b&lt;BR /&gt;
y (uid=0)&lt;/EM&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 16:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115698#M24195</guid>
      <dc:creator>micuzzu</dc:creator>
      <dc:date>2014-06-23T16:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname lost in forwarded syslog messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115699#M24196</link>
      <description>&lt;P&gt;if you use the  "syslog" sourcetype, then the host should be extracted from the events.&lt;/P&gt;

&lt;P&gt;To understand the mechanism, look at the $SPLUNK_HOME/etc/default/props.conf [syslog]&lt;BR /&gt;
and $SPLUNK_HOME/etc/default/transforms.conf [syslog-host]&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
DEST_KEY = MetaData:Host&lt;BR /&gt;
REGEX = :\d\d\s+(?:\d+\s+|(?:user|daemon|local.?)\.\w+\s+)*\[?(\w[\w\.\-]{2,})\]?\s&lt;BR /&gt;
FORMAT = host::$1&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 16:33:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115699#M24196</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-06-23T16:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname lost in forwarded syslog messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115700#M24197</link>
      <description>&lt;P&gt;OK, in fact they are now actually indexed using "linux_secure" sourcetype.&lt;BR /&gt;
Where are defined input data for forwarded events (I'm a newbie)?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jun 2014 16:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115700#M24197</guid>
      <dc:creator>micuzzu</dc:creator>
      <dc:date>2014-06-23T16:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname lost in forwarded syslog messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115701#M24198</link>
      <description>&lt;P&gt;Inputs are in inputs.conf (in $PSLUNK_HOME/etc/apps/&lt;MYAPP&gt;/default or /local,  or in the $SPLUNK_HOME/etc/system/local)&lt;/MYAPP&gt;&lt;/P&gt;

&lt;P&gt;Try to change the sourcetype to syslog to get the extraction.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:55:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115701#M24198</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2020-09-28T16:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Hostname lost in forwarded syslog messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115702#M24199</link>
      <description>&lt;P&gt;I tried on a test Splunk server, loading directly the file /var/log/secure of the syslog central server and it works &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Now how can I correct the behaviour on the production Splunk server, receiving forwarded events?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jun 2014 14:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Hostname-lost-in-forwarded-syslog-messages/m-p/115702#M24199</guid>
      <dc:creator>micuzzu</dc:creator>
      <dc:date>2014-06-26T14:12:33Z</dc:date>
    </item>
  </channel>
</rss>

