<?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: rsyslog question in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/rsyslog-question/m-p/82427#M17073</link>
    <description>&lt;P&gt;How do these messages differ from messages where the &lt;CODE&gt;%HOSTNAME%&lt;/CODE&gt; works? Please post an example. You are right, though. This is not really a splunk issue...but I've run into similar problems some time ago, and had to resort to using the &lt;CODE&gt;$fromhost-ip&lt;/CODE&gt; variable instead.&lt;/P&gt;

&lt;P&gt;This should work the same, but your files will be called 10.11.12.13.log etc, and in Splunk you'll get IP addresses as &lt;CODE&gt;host&lt;/CODE&gt; instead of a hostname (if you use &lt;CODE&gt;host_regex&lt;/CODE&gt; in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; to set the &lt;CODE&gt;host&lt;/CODE&gt; field). If you have this setup as the sourcetype &lt;CODE&gt;syslog&lt;/CODE&gt;, Splunk will check each and every message to set the &lt;CODE&gt;host&lt;/CODE&gt; field, and might possibly fail for the same resaons that rsyslog does.&lt;/P&gt;

&lt;P&gt;Note that using $fromhost-ip will only work well if the devices send their logs directly to the rsyslog server, without relays.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2013 07:41:36 GMT</pubDate>
    <dc:creator>kristian_kolb</dc:creator>
    <dc:date>2013-01-10T07:41:36Z</dc:date>
    <item>
      <title>rsyslog question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslog-question/m-p/82426#M17072</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;This isn't a splunk question, but I figure this community probably has a lot of people who use rsyslog...&lt;/P&gt;

&lt;P&gt;I have my rsyslog.conf setup to use dynafiles, and messages are written out to specific files for each host:&lt;/P&gt;

&lt;P&gt;$template DynaFile,"/apps/log/system-%HOSTNAME%.log"&lt;BR /&gt;
$FileOwner splunk&lt;BR /&gt;
&lt;EM&gt;.&lt;/EM&gt; -?DynaFile&lt;/P&gt;

&lt;P&gt;This config is working, except for one host. The hostname is not getting picked up for this host. I did notice that the messages are a little different (see below), but I'm not sure if that should cause rsyslog not to detect the host. I checked with engineering, and the messages are being directly from the device - there is no intermediary. Anyone ever seen this?&lt;/P&gt;

&lt;P&gt;Jan  9 08:54:49  01/09/2013: 08:54:49  hostxxxx PPE-0 : SSLLOG SSL_HANDSHAKE_SUCCESS 242099 :  SPCBId 246946 - ClientIP 1.2.3.4 - ClientPort 60900 - VserverServiceIP 1.2.3.4 - VserverServicePort 443 - ClientVersion TLSv1.0 - CipherSuite "RC4-MD5 TLSv1 Non-Export 128-bit" - Session New&lt;BR /&gt;
Jan  9 08:54:49  01/09/2013: 08:54:49  hostxxxx PPE-0 : UI CMD_EXECUTED 242100 :  User aaaaa - Remote_ip 1.2.3.4 - Command "logout" - Status "Success"&lt;BR /&gt;
Jan  9 08:54:51  01/09/2013: 08:54:51  hostxxxx PPE-0 : SSLLOG SSL_HANDSHAKE_SUCCESS 242101 :  SPCBId 246947 - ClientIP 1.2.3.4  - ClientPort 60901 - VserverServiceIP 1.2.3.4 - VserverServicePort 443 - ClientVersion TLSv1.0 - CipherSuite "RC4-MD5 TLSv1 Non-Export 128-bit" - Session Reuse&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 13:04:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslog-question/m-p/82426#M17072</guid>
      <dc:creator>a212830</dc:creator>
      <dc:date>2020-09-28T13:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: rsyslog question</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/rsyslog-question/m-p/82427#M17073</link>
      <description>&lt;P&gt;How do these messages differ from messages where the &lt;CODE&gt;%HOSTNAME%&lt;/CODE&gt; works? Please post an example. You are right, though. This is not really a splunk issue...but I've run into similar problems some time ago, and had to resort to using the &lt;CODE&gt;$fromhost-ip&lt;/CODE&gt; variable instead.&lt;/P&gt;

&lt;P&gt;This should work the same, but your files will be called 10.11.12.13.log etc, and in Splunk you'll get IP addresses as &lt;CODE&gt;host&lt;/CODE&gt; instead of a hostname (if you use &lt;CODE&gt;host_regex&lt;/CODE&gt; in &lt;CODE&gt;inputs.conf&lt;/CODE&gt; to set the &lt;CODE&gt;host&lt;/CODE&gt; field). If you have this setup as the sourcetype &lt;CODE&gt;syslog&lt;/CODE&gt;, Splunk will check each and every message to set the &lt;CODE&gt;host&lt;/CODE&gt; field, and might possibly fail for the same resaons that rsyslog does.&lt;/P&gt;

&lt;P&gt;Note that using $fromhost-ip will only work well if the devices send their logs directly to the rsyslog server, without relays.&lt;/P&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;Kristian&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2013 07:41:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/rsyslog-question/m-p/82427#M17073</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-01-10T07:41:36Z</dc:date>
    </item>
  </channel>
</rss>

