<?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: Problem reading syslog events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95407#M19876</link>
    <description>&lt;P&gt;You  might have a line format or line breaking issue. Are these multi-line events ?  Paste in a few lines from the raw sylog so we can take a look. &lt;BR /&gt;
What does the Stanza look like in your inputs.conf ?  Check %SPLUNK_HOME%\etc\system\local\inputs.conf . &lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2011 15:10:10 GMT</pubDate>
    <dc:creator>JSapienza</dc:creator>
    <dc:date>2011-10-20T15:10:10Z</dc:date>
    <item>
      <title>Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95406#M19875</link>
      <description>&lt;P&gt;My firewall is using syslog-ng to send logs to my log server over TCP on port 514. In Splunk&amp;gt;&amp;gt;Manager&amp;gt;&amp;gt;Data inputs&amp;gt;&amp;gt;TCP I have one entry, for port 514, which says source=tcp:514x and host=Firewall.&lt;/P&gt;

&lt;P&gt;If I set Sourcetype=syslog, one particular log appears with host=2011 instead of host=Firewall.&lt;/P&gt;

&lt;P&gt;If instead I set Sourcetype=syslog-ng, most of the time a few events get combined into one.&lt;/P&gt;

&lt;P&gt;What should I do?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 14:04:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95406#M19875</guid>
      <dc:creator>mmather67</dc:creator>
      <dc:date>2011-10-20T14:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95407#M19876</link>
      <description>&lt;P&gt;You  might have a line format or line breaking issue. Are these multi-line events ?  Paste in a few lines from the raw sylog so we can take a look. &lt;BR /&gt;
What does the Stanza look like in your inputs.conf ?  Check %SPLUNK_HOME%\etc\system\local\inputs.conf . &lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 15:10:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95407#M19876</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-10-20T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95408#M19877</link>
      <description>&lt;P&gt;In response to JSapienza&lt;/P&gt;

&lt;P&gt;Syslog only provides single-line events. All examples below are single lines.&lt;/P&gt;

&lt;P&gt;inputs.conf has nothing relevant.&lt;/P&gt;

&lt;P&gt;When the sourcetype is syslog, this event is picked up properly:-&lt;/P&gt;

&lt;P&gt;&amp;lt;190&amp;gt;2011:10:19-16:45:13 reverseproxy: srcip="211.142.x.x" localip="66.207.x.x" size="0" user="-" host="211.142.x.x" method="HEAD" statuscode="200" time="8772" url="/" server="66.207.x.x" referer="-" cookie="-" set-cookie="-"&lt;/P&gt;

&lt;P&gt;and this one gets host=2011:-&lt;/P&gt;

&lt;P&gt;&amp;lt;190&amp;gt;2011:10:19-16:45:13 reverseproxy: [Wed Oct 19 16:45:13 2011] [warn] [client 211.142.x.x] proxy: no HTTP 0.9 request (with no host line) on incoming request and preserve host set forcing hostname to be 66.207.x.x for uri /&lt;/P&gt;

&lt;P&gt;When the sourcetype is syslog-ng, the following two events get picked up as one:-&lt;/P&gt;

&lt;P&gt;&amp;lt;30&amp;gt;2011:10:20-06:49:13 ulogd[4729]: id="2002" severity="info" sys="SecureNet" sub="packetfilter" name="Packet accepted" action="accept" fwrule="17" initf="eth1" outitf="eth2" srcmac="0:1e:79:1a:x.x" dstmac="0:1a:8c:11:x.x" srcip="69.165.x.x" dstip="192.168.x.x" proto="6" length="60" tos="0x00" prec="0x00" ttl="56" srcport="60634" dstport="8000" tcpflags="SYN"&lt;/P&gt;

&lt;P&gt;&amp;lt;30&amp;gt;2011:10:20-06:49:14 ulogd[4729]: id="2002" severity="info" sys="SecureNet" sub="packetfilter" name="Packet accepted" action="accept" fwrule="10" initf="eth0" outitf="eth2" srcmac="0:21:9b:8e:x.x" dstmac="0:1a:8c:11:x.x" srcip="192.168.x.x" dstip="192.168.x.x" proto="6" length="48" tos="0x00" prec="0x00" ttl="127" srcport="63563" dstport="9997" tcpflags="SYN"&lt;/P&gt;

&lt;P&gt;By the way, the local props.conf says:&lt;/P&gt;

&lt;P&gt;[source::tcp:514]&lt;BR /&gt;&lt;BR /&gt;
TIME_FORMAT = %Y:%m:%d-%H:%M:S&lt;BR /&gt;&lt;BR /&gt;
host=Firewall-props&lt;/P&gt;

&lt;P&gt;but I don't believe that is relevant.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 17:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95408#M19877</guid>
      <dc:creator>mmather67</dc:creator>
      <dc:date>2011-10-20T17:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95409#M19878</link>
      <description>&lt;P&gt;You might try adding the fllowing stanza to &lt;CODE&gt;%SPLUNK_HOME\etc\system\local\props.conf&lt;/CODE&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog-ng]
SHOULD_LINEMERGE = False
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Bounce splunk and check your events. &lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 18:28:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95409#M19878</guid>
      <dc:creator>JSapienza</dc:creator>
      <dc:date>2011-10-20T18:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95410#M19879</link>
      <description>&lt;P&gt;Excellent. Thanks for your help.&lt;/P&gt;

&lt;P&gt;With the proviso that I don't know how to trigger host=2011, so I will wait for one of those events to happen naturally and see what happens.&lt;/P&gt;

&lt;P&gt;...local\props.conf now says:&lt;/P&gt;

&lt;P&gt;[syslog-ng]&lt;BR /&gt;&lt;BR /&gt;
TIME_FORMAT = %Y:%m:%d-%H:%M:%S&lt;BR /&gt;&lt;BR /&gt;
SHOULD_LINEMERGE=false&lt;/P&gt;

&lt;P&gt;Is there anything else that should be done when changing the sourcetype from syslog to syslog-ng?&lt;/P&gt;

&lt;P&gt;I presume, by the way, that the TCP 514 entry in Data Inputs applies &lt;EM&gt;before&lt;/EM&gt; props.conf. Otherwise [syslog-ng] would not be recognised.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 19:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95410#M19879</guid>
      <dc:creator>mmather67</dc:creator>
      <dc:date>2011-10-20T19:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95411#M19880</link>
      <description>&lt;P&gt;The reason you're getting host=2011 when using the "syslog" sourcetype is because Splunk has transforms for that particular sourcetype that sets the host based on log events. Here's the transform that does the job:&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;</description>
      <pubDate>Thu, 20 Oct 2011 20:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95411#M19880</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2011-10-20T20:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem reading syslog events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95412#M19881</link>
      <description>&lt;P&gt;I cannot pretend to read that. But why is it doing it anyway? What is it hoping to achieve?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 20:34:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Problem-reading-syslog-events/m-p/95412#M19881</guid>
      <dc:creator>mmather67</dc:creator>
      <dc:date>2011-10-20T20:34:43Z</dc:date>
    </item>
  </channel>
</rss>

