<?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: Multi-Line Syslog Interpretted as Separate Messages in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56615#M11024</link>
    <description>&lt;P&gt;you could use the attributes BREAK_ONLY_BEFORE in your props.conf,for example if your sourcetype is syslog:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = &amp;lt;regular expression&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here &lt;A href="http://www.splunk.com/base/Documentation/4.1.7/Admin/Indexmulti-lineevents" rel="nofollow"&gt;Configure linebreaking for multi-line events&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;There is explanation on different ways to do it.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2011 23:50:59 GMT</pubDate>
    <dc:creator>MarioM</dc:creator>
    <dc:date>2011-03-09T23:50:59Z</dc:date>
    <item>
      <title>Multi-Line Syslog Interpretted as Separate Messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56614#M11023</link>
      <description>&lt;P&gt;2011-03-09T11:21:34-04:00 ab-wtsk-mg3200-2 [Src=10.157.32.26/49842 Dst=4070 PType=6] ErrMgs=1 Cid=23: 1 RTP packets lost: CID=23&lt;BR /&gt;
 [Code:3700e] [Time: 8:21:13]&lt;/P&gt;

&lt;P&gt;That's an example log from syslog-ng to a fifo pipe on my splunk server. it sends the same message to splunk via a UDP port.&lt;/P&gt;

&lt;P&gt;Splunk is interpreting it as 2 separate log messages:&lt;/P&gt;

&lt;P&gt;------ BEGIN TEXT SPLUNK DUMP HERE ------&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;3/9/11
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;11:21:13.000 AM     &lt;/P&gt;

&lt;P&gt;[Code:3700e] [Time: 8:21:13]&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=172.16.6.52 Alberta MG3200 Wetaskiwin ab-wtsk-mg3200-2   Options|  
sourcetype=syslog   Options|  
source=MST   Options

3/9/11
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;2:21:34.000 PM  &lt;/P&gt;

&lt;P&gt;Mar  9 11:21:34 ab-wtsk-mg3200-2 [Src=10.157.32.26/49842 Dst=4070 PType=6] ErrMgs=1 Cid=23: 1 RTP packets lost: CID=23&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=ab-wtsk-mg3200-2 Alberta MG3200 Wetaskiwin   Options|  
sourcetype=syslog   Options|  
source=MST   Options
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;------ END TEXT SPLUNK DUMP HERE ------&lt;/P&gt;

&lt;P&gt;How can I stop this behaviour, and make it recognize it as a single log event?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 23:28:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56614#M11023</guid>
      <dc:creator>Joel_Gerber</dc:creator>
      <dc:date>2011-03-09T23:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-Line Syslog Interpretted as Separate Messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56615#M11024</link>
      <description>&lt;P&gt;you could use the attributes BREAK_ONLY_BEFORE in your props.conf,for example if your sourcetype is syslog:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[syslog]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE = &amp;lt;regular expression&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here &lt;A href="http://www.splunk.com/base/Documentation/4.1.7/Admin/Indexmulti-lineevents" rel="nofollow"&gt;Configure linebreaking for multi-line events&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;There is explanation on different ways to do it.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2011 23:50:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56615#M11024</guid>
      <dc:creator>MarioM</dc:creator>
      <dc:date>2011-03-09T23:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multi-Line Syslog Interpretted as Separate Messages</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56616#M11025</link>
      <description>&lt;P&gt;Thanks, I ended up using the following instead:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;&lt;BR /&gt;
[syslog]&lt;BR /&gt;
SHOULD_LINEMERGE = true&lt;BR /&gt;
BREAK_ONLY_BEFORE_DATE = true&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Since all of my traffic is being filtered by syslog-ng before going into splunk, I know it will all have a timestamp. That seems to have fixed my issue for me.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:26:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multi-Line-Syslog-Interpretted-as-Separate-Messages/m-p/56616#M11025</guid>
      <dc:creator>Joel_Gerber</dc:creator>
      <dc:date>2020-09-28T09:26:06Z</dc:date>
    </item>
  </channel>
</rss>

