<?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 rsyslog -&amp;gt; splunk UDP port 515 in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/rsyslog-gt-splunk-UDP-port-515/m-p/52915#M10206</link>
    <description>&lt;P&gt;Hi, I already have a syslog receiver (rsyslogd) that receives ALL syslog messages from our environment.  I configured it to forward everything to 127.0.0.1 UDP port 515.  Then I added a UDP Network data input in Splunk of port 515 of type syslog.&lt;/P&gt;

&lt;P&gt;However, every event in Splunk has timestamp localhost prepended to it like so:&lt;BR /&gt;
Sep  6 14:00:32 localhost Sep  6 14:00:32 uskyarpts08s0.mydomain.com vsftpd[4174]: warning: can't get client address: Connection reset by peer&lt;/P&gt;

&lt;P&gt;Is there any way to make it so the original syslog host (uskyarpts08s0) is preserved as the actual source host and the localhost is not prepended?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2012 14:02:22 GMT</pubDate>
    <dc:creator>jeremymiller</dc:creator>
    <dc:date>2012-09-06T14:02:22Z</dc:date>
    <item>
      <title>rsyslog -&gt; splunk UDP port 515</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslog-gt-splunk-UDP-port-515/m-p/52915#M10206</link>
      <description>&lt;P&gt;Hi, I already have a syslog receiver (rsyslogd) that receives ALL syslog messages from our environment.  I configured it to forward everything to 127.0.0.1 UDP port 515.  Then I added a UDP Network data input in Splunk of port 515 of type syslog.&lt;/P&gt;

&lt;P&gt;However, every event in Splunk has timestamp localhost prepended to it like so:&lt;BR /&gt;
Sep  6 14:00:32 localhost Sep  6 14:00:32 uskyarpts08s0.mydomain.com vsftpd[4174]: warning: can't get client address: Connection reset by peer&lt;/P&gt;

&lt;P&gt;Is there any way to make it so the original syslog host (uskyarpts08s0) is preserved as the actual source host and the localhost is not prepended?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2012 14:02:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslog-gt-splunk-UDP-port-515/m-p/52915#M10206</guid>
      <dc:creator>jeremymiller</dc:creator>
      <dc:date>2012-09-06T14:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: rsyslog -&gt; splunk UDP port 515</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslog-gt-splunk-UDP-port-515/m-p/52916#M10207</link>
      <description>&lt;P&gt;you can tell splunk to not prepend in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; with &lt;CODE&gt;no_appending_timestamp=true&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;no_appending_timestamp = [true|false]
* If this attribute is set to true, Splunk does NOT append a timestamp and host to received events.
* NOTE: Do NOT include this attribute if you want to append timestamp and host to received events.
* Default is false.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can override host as well with props &amp;amp; transforms:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::udp:515]
TRANSFORMS-extract_host = hostoverride
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hostoverride]
DEST_KEY = MetaData:Host
REGEX = ^\w+\s+\d+\s+\d+:\d+:\d+\s+\w+\s+\w+\s+\d+\s+\d+:\d+:\d+\s+(\S+)
FORMAT = host::$1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Sep 2012 15:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslog-gt-splunk-UDP-port-515/m-p/52916#M10207</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2012-09-06T15:21:43Z</dc:date>
    </item>
  </channel>
</rss>

