<?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 How to merge a multiline event correctly ? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150614#M30631</link>
    <description>&lt;P&gt;I have a problem that  is similar to this topic :&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/188776/events-are-not-properly-split.html" target="_blank"&gt;http://answers.splunk.com/answers/188776/events-are-not-properly-split.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My log  looks like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Wed Jul 30 02:41:12 TAIST 2015
runstats on table TABLE1 
DB20000I  The RUNSTATS command completed successfully.

Wed Jul 30 02:45:12 TAIST 2015
runstats on table TABLE2
SQLERROR : ... error message

Wed Jul 30 02:47:30 TAIST 2015
runstats on table TABLE3
DB20000I  The RUNSTATS command completed successfully.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to group the three line into one event , so I could know the check status for each table.&lt;BR /&gt;
but I find the SPLUNK will not wait the last line and  group the event correctly , it will index the event as soon as possible.&lt;/P&gt;

&lt;P&gt;I means , Splunk will group the first two line into one group  , and the third line is another "orphan" event, because the third line is usually being written after 2~3 seconds. &lt;/P&gt;

&lt;P&gt;My props.conf setting :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[reorg_out]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE_DATE = true
TIME_FORMAT = %a %b %d %H:%M:%S TAIST %Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I had tried a lot of different settings about LINE MERGE , like :   BREAK_ONLY_BEFORE , LINE_BREAK , MUST_NOT_BREAK_AFTER ... etc&lt;BR /&gt;
It is not working...&lt;/P&gt;

&lt;P&gt;What should I do to tell Splunk wait the last log and group the multiline event correctly ?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 06:51:18 GMT</pubDate>
    <dc:creator>leo_wang</dc:creator>
    <dc:date>2020-09-29T06:51:18Z</dc:date>
    <item>
      <title>How to merge a multiline event correctly ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150614#M30631</link>
      <description>&lt;P&gt;I have a problem that  is similar to this topic :&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/188776/events-are-not-properly-split.html" target="_blank"&gt;http://answers.splunk.com/answers/188776/events-are-not-properly-split.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;My log  looks like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Wed Jul 30 02:41:12 TAIST 2015
runstats on table TABLE1 
DB20000I  The RUNSTATS command completed successfully.

Wed Jul 30 02:45:12 TAIST 2015
runstats on table TABLE2
SQLERROR : ... error message

Wed Jul 30 02:47:30 TAIST 2015
runstats on table TABLE3
DB20000I  The RUNSTATS command completed successfully.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to group the three line into one event , so I could know the check status for each table.&lt;BR /&gt;
but I find the SPLUNK will not wait the last line and  group the event correctly , it will index the event as soon as possible.&lt;/P&gt;

&lt;P&gt;I means , Splunk will group the first two line into one group  , and the third line is another "orphan" event, because the third line is usually being written after 2~3 seconds. &lt;/P&gt;

&lt;P&gt;My props.conf setting :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[reorg_out]
SHOULD_LINEMERGE = true
BREAK_ONLY_BEFORE_DATE = true
TIME_FORMAT = %a %b %d %H:%M:%S TAIST %Y
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I had tried a lot of different settings about LINE MERGE , like :   BREAK_ONLY_BEFORE , LINE_BREAK , MUST_NOT_BREAK_AFTER ... etc&lt;BR /&gt;
It is not working...&lt;/P&gt;

&lt;P&gt;What should I do to tell Splunk wait the last log and group the multiline event correctly ?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:51:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150614#M30631</guid>
      <dc:creator>leo_wang</dc:creator>
      <dc:date>2020-09-29T06:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge a multiline event correctly ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150615#M30632</link>
      <description>&lt;P&gt;You need to use this &lt;CODE&gt;inputs.conf&lt;/CODE&gt; setting:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;time_before_close = &amp;lt;integer&amp;gt;
* Modtime delta required before Splunk can close a file on EOF.
* Tells the system not to close files that have been updated in past &amp;lt;integer&amp;gt; seconds.
* Defaults to 3.
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2015 13:29:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150615#M30632</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-31T13:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge a multiline event correctly ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150616#M30633</link>
      <description>&lt;P&gt;I used "time_before_close" setting in my pervious test.&lt;BR /&gt;
Unfortunately , it's still not working.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:51:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150616#M30633</guid>
      <dc:creator>leo_wang</dc:creator>
      <dc:date>2020-09-29T06:51:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge a multiline event correctly ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150617#M30634</link>
      <description>&lt;P&gt;What setting did you use?  I would go as high as 10 seconds.  If you cannot make this work, then the only other thing I can think to do is to create your own pre-processing script to act as intermediary and send the events form the original file to another file (with Splunk monitoring the second one) in bundled batches.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Aug 2015 00:50:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150617#M30634</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-02T00:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge a multiline event correctly ?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150618#M30635</link>
      <description>&lt;P&gt;It seems someone has the same issue, but still can't find the answer for this...&lt;BR /&gt;
&lt;A href="http://answers.splunk.com/answers/207258/is-there-a-way-to-tell-splunk-how-long-to-wait-for.html"&gt;http://answers.splunk.com/answers/207258/is-there-a-way-to-tell-splunk-how-long-to-wait-for.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I know writing scripts for those files might be the solution.&lt;BR /&gt;
But it will make the things complicated and not easy to maintain in the future.&lt;BR /&gt;
Anyone has the suggestion ?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 02:44:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-merge-a-multiline-event-correctly/m-p/150618#M30635</guid>
      <dc:creator>leo_wang</dc:creator>
      <dc:date>2015-08-04T02:44:07Z</dc:date>
    </item>
  </channel>
</rss>

