<?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: Separate combined log entries at search time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13944#M1414</link>
    <description>&lt;P&gt;That would work. I wrote a "split" command to do effectively the same thing, and it has exactly the same problems.&lt;/P&gt;

&lt;P&gt;Deep suggested LINE_BREAKER instead of BREAK_ONLY_BEFORE. We're going to try that and see if the problem goes away.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:16:42 GMT</pubDate>
    <dc:creator>vbumgarn</dc:creator>
    <dc:date>2020-09-28T09:16:42Z</dc:date>
    <item>
      <title>Separate combined log entries at search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13942#M1412</link>
      <description>&lt;P&gt;I have an ongoing problem that I hope just goes away when I upgrade completely to v4.  My current setup is v3 Forwarders sending data to v3 indexer, which is storing and forwarding all results to a v4 indexer.&lt;/P&gt;

&lt;P&gt;Every once in a while, logs end up indexed with multiple events crammed together, ignoring the BREAK_ONLY_BEFORE pattern.  I of course cannot reproduce the problem outside of production.  I'm sure it is something to do with overflowing some buffer somewhere.&lt;/P&gt;

&lt;P&gt;My props.conf looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[rm3]
BREAK_ONLY_BEFORE=20[0-9][0-9]-\d+-\d+\s+\d+:\d+:\d+,\d+\s+
pulldown_type = true
AUTO_TAG = false
KV_MODE = none
MAX_TIMESTAMP_LOOKAHEAD = 25
MAX_EVENTS = 512
AUTO_LINEMERGE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Anyway, I'm hoping that in the short term, there is some command that can split up results based on some pattern at search time.  In this case, I want to break on ^2010.  If this doesn't exist, I'll make a command for it, I was just hoping something already exists.&lt;/P&gt;

&lt;P&gt;Thanks,
Vincent&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2010 22:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13942#M1412</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2010-05-20T22:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Separate combined log entries at search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13943#M1413</link>
      <description>&lt;P&gt;There's no good way to do this at search time since field extraction is run before you'd have a chance to do anything meaningful to the events. A technique like this can be used to split separate lines into separate results, but it's filled with problems:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex mode=sed "s/\n/NL/g" | eval raw=_raw | makemv raw delim="NL" | mvexpand raw | eval _raw = raw
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Some of the big problems are:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;If separate lines have separate timestamps, all expanded results will still have the same timestamp as the first line.&lt;/LI&gt;
&lt;LI&gt;Every line will inherit the fields extracted from the parent event, most likely those from the first line.&lt;/LI&gt;
&lt;LI&gt;The results aren't treated as events but rather as results, so they won't show up properly in flashtimeline.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Sun, 22 Aug 2010 05:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13943#M1413</guid>
      <dc:creator>Stephen_Sorkin</dc:creator>
      <dc:date>2010-08-22T05:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: Separate combined log entries at search time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13944#M1414</link>
      <description>&lt;P&gt;That would work. I wrote a "split" command to do effectively the same thing, and it has exactly the same problems.&lt;/P&gt;

&lt;P&gt;Deep suggested LINE_BREAKER instead of BREAK_ONLY_BEFORE. We're going to try that and see if the problem goes away.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Separate-combined-log-entries-at-search-time/m-p/13944#M1414</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2020-09-28T09:16:42Z</dc:date>
    </item>
  </channel>
</rss>

