<?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: Multiline Event Breaking and Current Time in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468484#M1788</link>
    <description>&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = .*($)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt; , &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; works.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;.*($)&lt;/CODE&gt; is intended to be the end of the event.&lt;/P&gt;</description>
    <pubDate>Sat, 04 Apr 2020 22:34:58 GMT</pubDate>
    <dc:creator>to4kawa</dc:creator>
    <dc:date>2020-04-04T22:34:58Z</dc:date>
    <item>
      <title>Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468480#M1784</link>
      <description>&lt;P&gt;[ANSWERED by to4kawa]&lt;/P&gt;
&lt;P&gt;props.conf should be&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;[yoursourcetype]
DATETIME_CONFIG = CURRENT
SHOULD_LINEMERGE = false
LINE_BREAKER = .*($)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have a Catch 22 issue. I want three things to happen.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;I want to monitor a log file and to &lt;STRONG&gt;combine all lines into a single event&lt;/STRONG&gt; until the file is not updated for 2 seconds or more.&lt;/LI&gt;
&lt;LI&gt;I want to &lt;STRONG&gt;disable all time extraction&lt;/STRONG&gt;, I want all the time set to current (ie _indextime).&lt;/LI&gt;
&lt;LI&gt;Being able to handle arbitrary data &lt;STRONG&gt;without any separators&lt;/STRONG&gt;.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Imagine my file is empty and then within a microsecond these three lines are added to my file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;TEST1 Fri Apr  6 20:05:59 EDT 2020
TEST2 Fri Apr  3 20:04:30 EDT 2020
TEST3 Fri Apr  1 20:05:59 EDT 2020
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I would like them all to be combined into a single event. And I want the timestamp to be set to current.&lt;/P&gt;
&lt;P&gt;If I just just start monitoring the file without any props it combines the events into a single one just fine. BUT it will try to parse the timestamps and they will be all over the place. If I mod props.conf and set DATETIME_CONFIG=CURRENT it will set the time to the current one but then split the events into single lines.&lt;/P&gt;
&lt;P&gt;So I am in a catch 22, I can have one or the other. Any ideas what inputs/props/transforms combo I can have that ignores all time stamps, and combines the events into a single one no matter what.&lt;/P&gt;
&lt;P&gt;I honestly want something that checks if file has not been modified for 2 seconds and then combine everything new that was added into &lt;STRONG&gt;ONE&lt;/STRONG&gt; event.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:33:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468480#M1784</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2020-06-08T21:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468481#M1785</link>
      <description>&lt;P&gt;&lt;CODE&gt;until the file is not updated for 2 seconds or more.&lt;/CODE&gt;&lt;BR /&gt;
what's inputs.conf?&lt;BR /&gt;
this is not pops.conf issue.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 02:55:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468481#M1785</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-04T02:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468482#M1786</link>
      <description>&lt;P&gt;These settings should help.  Adjust the &lt;CODE&gt;TRUNCATE&lt;/CODE&gt; and &lt;CODE&gt;MAX_EVENTS&lt;/CODE&gt; settings as appropriate for your data.&lt;/P&gt;

&lt;P&gt;inputs.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[monitor://my/file]
multiline_event_extra_waittime = true
time_before_close = 2
sourcetype = foo
index = bar
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[foo]
DATETIME_CONFIG = current
SHOULD_LINEMERGE = true
TRUNCATE = 10000
MAX_EVENTS = 256
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 04 Apr 2020 12:45:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468482#M1786</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-04T12:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468483#M1787</link>
      <description>&lt;P&gt;Hi Rich,&lt;/P&gt;

&lt;P&gt;I just tried this. &lt;/P&gt;

&lt;P&gt;INPUTS.CONF&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [monitor:///tmp/test3.log]
    disabled = false
    sourcetype = mytest
    multiline_event_extra_waittime = true
    time_before_close = 2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;PROPS.CONF&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mytest]
DATETIME_CONFIG = CURRENT
SHOULD_LINEMERGE = true
TRUNCATE = 10000
MAX_EVENTS = 256
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've added &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TEST8 Fri Apr  6 21:05:59 EDT 2020
TEST8 Fri Apr  3 21:04:30 EDT 2020
TEST8 Fri Apr  1 21:05:59 EDT 2020
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But they came as separate events on Splunk  8.&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://i.imgur.com/aYhZLiF.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 22:01:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468483#M1787</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2020-04-04T22:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468484#M1788</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;SHOULD_LINEMERGE = false
LINE_BREAKER = .*($)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if &lt;CODE&gt;SHOULD_LINEMERGE = false&lt;/CODE&gt; , &lt;CODE&gt;LINE_BREAKER&lt;/CODE&gt; works.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;.*($)&lt;/CODE&gt; is intended to be the end of the event.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 22:34:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468484#M1788</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-04T22:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468485#M1789</link>
      <description>&lt;P&gt;That's perfect, thank you! The below came together as one event AND the timestamp is auto set to current.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;4/4/20 7:09:02.000 PM   

TEST11 Fri Apr  6 22:05:59 EDT 2020
TEST11 Fri Apr  3 22:04:30 EDT 2020
TEST11 Fri Apr  1 22:05:59 EDT 2020
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Appreciate your time&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2020 23:20:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468485#M1789</guid>
      <dc:creator>ifeldshteyn</dc:creator>
      <dc:date>2020-04-04T23:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiline Event Breaking and Current Time</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468486#M1790</link>
      <description>&lt;P&gt;your welcome&lt;BR /&gt;
&lt;CODE&gt;.*($)&lt;/CODE&gt; is OK, I recognized it, too.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 00:25:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Multiline-Event-Breaking-and-Current-Time/m-p/468486#M1790</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-04-05T00:25:45Z</dc:date>
    </item>
  </channel>
</rss>

