<?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: rsyslogd-&amp;gt;forward into splunk via UDP - host always localhost(127.0.0.1) in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138331#M28444</link>
    <description>&lt;P&gt;Without seeing your configs or having access to the environment, I would note that it's likely an issue with rsyslogd output rather than Splunk input.  It looks like it's tagging itself as part of the syslog message chain.  Have you tried updating the templates for log messages in the rsyslog config (typically /etc/rsyslog.conf)?  Docs (for v5, not sure what version you'd be running):&lt;BR /&gt;
&lt;A href="http://www.rsyslog.com/doc/v5-stable/configuration/templates.html"&gt;http://www.rsyslog.com/doc/v5-stable/configuration/templates.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As reference, here's a sample template we've used for some of our syslog events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Create a template to prevent double timestamps
$template juniper,"%timestamp:::date-rfc3339% %HOSTNAME%%msg%\n"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not that it's directly related to your problem... but from an architectural point of view, I'd recommend dropping those events to a local log file rather than having rsyslog send directly to Splunk.  That way, you have additional resiliency in case you need to take Splunk down (ex: upgrades).  Just have Splunk monitor those particular log file(s).  If you go this route, also make sure to add logrotate configs for those files too.&lt;/P&gt;</description>
    <pubDate>Wed, 24 Sep 2014 13:18:29 GMT</pubDate>
    <dc:creator>srioux</dc:creator>
    <dc:date>2014-09-24T13:18:29Z</dc:date>
    <item>
      <title>rsyslogd-&gt;forward into splunk via UDP - host always localhost(127.0.0.1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138330#M28443</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;So we are forwarding syslog using rsyslog to a udp port 2001 - all is working well except... &lt;/P&gt;

&lt;P&gt;problem:&lt;/P&gt;

&lt;P&gt;host is always 127.0.0.1 &lt;/P&gt;

&lt;P&gt;sample message looks like:&lt;BR /&gt;
Sep 24 11:37:11 127.0.0.1 Sep 24 11:37:11 X.X.X.X 1693874: RP/0/RSP0/CPU0:Sep 24 11:37:11.073 GMT: tcp[395]: %IP-TCP-3-BADAUTH : &lt;/P&gt;

&lt;P&gt;Where X.X.X.X is the IP of the sending syslog device.&lt;/P&gt;

&lt;P&gt;host = 127.0.0.1 source udp:2001 sourcetype = syslog&lt;/P&gt;

&lt;P&gt;Is it possible to get those IP's into the host tag - as everything is tagged to 127.0.0.1 ??&lt;/P&gt;

&lt;P&gt;I have looked at some answers pointing to editing transforms.conf and props.conf (I edited the /opt/splunk/system/local files)&lt;BR /&gt;
but nothing is working&lt;/P&gt;

&lt;P&gt;I also get the double timestamps - both when Splunk receives the message and also the Cisco timestamp.&lt;/P&gt;

&lt;P&gt;any ideas ?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 12:31:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138330#M28443</guid>
      <dc:creator>besveinsson</dc:creator>
      <dc:date>2014-09-24T12:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: rsyslogd-&gt;forward into splunk via UDP - host always localhost(127.0.0.1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138331#M28444</link>
      <description>&lt;P&gt;Without seeing your configs or having access to the environment, I would note that it's likely an issue with rsyslogd output rather than Splunk input.  It looks like it's tagging itself as part of the syslog message chain.  Have you tried updating the templates for log messages in the rsyslog config (typically /etc/rsyslog.conf)?  Docs (for v5, not sure what version you'd be running):&lt;BR /&gt;
&lt;A href="http://www.rsyslog.com/doc/v5-stable/configuration/templates.html"&gt;http://www.rsyslog.com/doc/v5-stable/configuration/templates.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;As reference, here's a sample template we've used for some of our syslog events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;# Create a template to prevent double timestamps
$template juniper,"%timestamp:::date-rfc3339% %HOSTNAME%%msg%\n"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Not that it's directly related to your problem... but from an architectural point of view, I'd recommend dropping those events to a local log file rather than having rsyslog send directly to Splunk.  That way, you have additional resiliency in case you need to take Splunk down (ex: upgrades).  Just have Splunk monitor those particular log file(s).  If you go this route, also make sure to add logrotate configs for those files too.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Sep 2014 13:18:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138331#M28444</guid>
      <dc:creator>srioux</dc:creator>
      <dc:date>2014-09-24T13:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: rsyslogd-&gt;forward into splunk via UDP - host always localhost(127.0.0.1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138332#M28445</link>
      <description>&lt;P&gt;ok - I will look at that - &lt;/P&gt;

&lt;P&gt;I'm not quite new to spunk - but in this installation we're using rsyslogd - but I have used syslog-ng in the past. I used to be able to point spunk to the directory and it just grabbed all log files recursively. In this case, spunk will not match the log files. We use log-rotate and .gz old files. &lt;/P&gt;

&lt;P&gt;logs from each host are put in subdirectories - files are named by the date .log&lt;/P&gt;

&lt;P&gt;I'm probably missing some basic stuff here.&lt;/P&gt;

&lt;P&gt;going to look at rsyslog conf and further how to get those files into spunk  (better!)&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Benni&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 24 Sep 2014 13:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138332#M28445</guid>
      <dc:creator>besveinsson</dc:creator>
      <dc:date>2014-09-24T13:29:46Z</dc:date>
    </item>
    <item>
      <title>Re: rsyslogd-&gt;forward into splunk via UDP - host always localhost(127.0.0.1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138333#M28446</link>
      <description>&lt;P&gt;Another note:&lt;BR /&gt;
Might also be worth checking the UDP inputs on inputs.conf&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/admin/Inputsconf"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/admin/Inputsconf&lt;/A&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;</description>
      <pubDate>Wed, 24 Sep 2014 18:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138333#M28446</guid>
      <dc:creator>srioux</dc:creator>
      <dc:date>2014-09-24T18:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: rsyslogd-&gt;forward into splunk via UDP - host always localhost(127.0.0.1)</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138334#M28447</link>
      <description>&lt;P&gt;What version of rsyslog are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Sep 2014 05:59:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslogd-gt-forward-into-splunk-via-UDP-host-always-localhost/m-p/138334#M28447</guid>
      <dc:creator>vqd361</dc:creator>
      <dc:date>2014-09-25T05:59:54Z</dc:date>
    </item>
  </channel>
</rss>

