<?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: Parsing multiline does not working as expected in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/580007#M102356</link>
    <description>&lt;P&gt;The Problem is fixed now.&lt;BR /&gt;&lt;BR /&gt;It wasnt directly Splunk.&lt;BR /&gt;The Logs were written line by line, and that caused Splunk to rip the events apart.&lt;/P&gt;&lt;P&gt;Now the logs get written in a file not monitored by UF and after writing the file gets renamed so the UF monitors it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jan 2022 14:16:34 GMT</pubDate>
    <dc:creator>TheEggi98</dc:creator>
    <dc:date>2022-01-05T14:16:34Z</dc:date>
    <item>
      <title>Parsing multiline does not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/579877#M102341</link>
      <description>&lt;P&gt;Hello Splunkers,&lt;/P&gt;&lt;P&gt;i need help.&lt;BR /&gt;I have multiline logs looking like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;01/04/22 03:00:00 MONITOR_RAP: blah blah:
blah ;
blah ;
blah ;
blah ;
blah ;
01/04/22 07:00:00 MONITOR_RAP: blah blah:
blah ;
blah ;
blah ;
blah ;
blah ;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i ingest them with the following sourcetype stanza:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
SHOULD_LINEMERGE        = true
BREAK_ONLY_BEFORE_DATE  = true
TRUNCATE                = 1000
TIME_PREFIX             = ^
MAX_TIMESTAMP_LOOKAHEAD = 17
TIME_FORMAT             = %m/%d/%y %H:%M:%S&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The Universal Forwarder monitors the Directory where the logs landing.&lt;BR /&gt;The first ingestion succeded without problems but when new logs written in the logfile of today, the parsing made multiple events out of the new logentries.&lt;/P&gt;&lt;P&gt;The monitor Stanza:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[monitor://&amp;lt;path&amp;gt;/*.log]
disabled   = 0
sourcetype = mysourcetype
index      = myindex&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the first couple events were parsed like it should but when new logs arrived splunk made multiple events like (the codeblocks represent one multiline event, each codeblock represents a wrong parsed event in splunk):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;01/04/22 03:00:00 blah:
blah ;
blah ;&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;blah ;
blah;&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;blah ;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is wrong? Is it maybe a bug? I dont get it.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jan 2022 14:16:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/579877#M102341</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2022-01-04T14:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiline does not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/579895#M102343</link>
      <description>&lt;P&gt;It seems like the UF is breaking the stream in the wrong place so the indexer can't process the events correctly.&amp;nbsp; Try adding these settings in props.conf on the UF.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[mysourcetype]
EVENT_BREAKER_ENABLE = true
EVENT_BREAKER = ([\r\n]+)\d\d\/\d\d/\d\d&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jan 2022 16:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/579895#M102343</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-01-04T16:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parsing multiline does not working as expected</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/580007#M102356</link>
      <description>&lt;P&gt;The Problem is fixed now.&lt;BR /&gt;&lt;BR /&gt;It wasnt directly Splunk.&lt;BR /&gt;The Logs were written line by line, and that caused Splunk to rip the events apart.&lt;/P&gt;&lt;P&gt;Now the logs get written in a file not monitored by UF and after writing the file gets renamed so the UF monitors it.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 14:16:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Parsing-multiline-does-not-working-as-expected/m-p/580007#M102356</guid>
      <dc:creator>TheEggi98</dc:creator>
      <dc:date>2022-01-05T14:16:34Z</dc:date>
    </item>
  </channel>
</rss>

