<?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: How to split multiple lines of data into individual lines? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191765#M38194</link>
    <description>&lt;P&gt;Yes, but you will have to clear the &lt;CODE&gt;fishbucket&lt;/CODE&gt; first.&lt;/P&gt;</description>
    <pubDate>Mon, 30 May 2016 23:44:56 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2016-05-30T23:44:56Z</dc:date>
    <item>
      <title>How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191756#M38185</link>
      <description>&lt;P&gt;Hello every one, &lt;/P&gt;

&lt;P&gt;I have some data in my Splunk server that is not separated correctly. I want to split this data into lines. Below a sample of my data: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06/07/15 15:39:11,000       zone CL=Product;AC=resp;MID=AS5952 ;code=57;time=251;mark=samsung;zone CL=Product;AC=resp;MID=AS5952 ;code=03;time=614;mark=Iphone;zone CL=Product;AC=resp;MID=AS5952 ;code=00;time=506;mark=samsung;zone CL=Product;AC=resp;MID=AS5952 ;code=57;time=274;mark=samsung;zone CL=Product;AC=resp;MID=AS5952 ;code=00;time=892;mark=Iphone;zone CL=Product;AC=resp;MID=AS5952 ;code=57;time=256;mark=samsung;zone CL=Product;AC=resp;MID=AS5952 ;code=00;time=623;mark=samsung;zone CL=Product;AC=resp;MID=AS5952 ;code=57;time=281;mark=samsung;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;so what I want to do is to split this log like : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;06/07/15 15:39:11,000  zone CL=Product;AC=resp;MID=AS5952 ;code=57;time=251;mark=samsung;
06/07/15 15:39:11,000  zone CL=Product;AC=resp;MID=AS5952 ;code=03;time=614;mark=Iphone;
06/07/15 15:39:11,000   zone CL=Product;AC=resp;MID=AS5952 ;code=00;time=506;mark=samsung;
06/07/15 15:39:11,000   zone CL=Product;AC=resp;MID=AS5952 ;code=57;time=274;mark=samsung;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;any help please.  thank you . &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 14:13:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191756#M38185</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2015-07-06T14:13:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191757#M38186</link>
      <description>&lt;P&gt;I am assuming that what you posted was one event and that you are succesfully sending these "bunched" events into Splunk already; if so, use something like this when you need to break them apart at search time:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...  | rex max_match=0 field=_raw "(?&amp;lt;lineData&amp;gt;zone.*?mark=[^;]+)" | mvexpand lineData | fields lineData
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you have your &lt;CODE&gt;timestmaping&lt;/CODE&gt; working correctly, each event will have the correct timestamp.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2015 17:15:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191757#M38186</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-06T17:15:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191758#M38187</link>
      <description>&lt;P&gt;If his application is not line breaking the event,  essentially printing multiple line into a single line they would merge.  If this is the case you could use BREAK_ONLY_BEFORE in the props.conf.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:36:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191758#M38187</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2020-09-29T06:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191759#M38188</link>
      <description>&lt;P&gt;how can I use this parameter &lt;STRONG&gt;BREAK_ONLY_BEFORE&lt;/STRONG&gt;  based on my log ?&lt;BR /&gt;
thank you&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191759#M38188</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2020-09-29T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191760#M38189</link>
      <description>&lt;P&gt;I used the parameter with this configuration &lt;BR /&gt;
&lt;STRONG&gt;BREAK_ONLY_BEFORE=zone&lt;/STRONG&gt; &lt;BR /&gt;
but it doesn't work&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 06:36:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191760#M38189</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2020-09-29T06:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191761#M38190</link>
      <description>&lt;P&gt;Can I reindex my data without delete it? because I can't delete data present in the server &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 10:26:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191761#M38190</guid>
      <dc:creator>otman01</dc:creator>
      <dc:date>2015-07-07T10:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191762#M38191</link>
      <description>&lt;P&gt;He is saying at &lt;CODE&gt;index-time&lt;/CODE&gt;, you can configure Splunk to break events into multiple events so that you do not have to do it at &lt;CODE&gt;search-time&lt;/CODE&gt;.  The "problem" with this approach is that each line does not have it's own timestmamp so this will cause Splunk to issue a warning in the log for each sub-event after the first in a clump with text like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WARN  DateParserVerbose - Failed to parse timestamp. Defaulting to timestamp of previous event.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It is harmless, but since it does the correct thing (use previous event's timestamp), it will work for you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jul 2015 14:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191762#M38191</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-07-07T14:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191763#M38192</link>
      <description>&lt;P&gt;We also just had this problem. I added SHOULD_LINEMERGE = false to my props.conf but all earlier events were naturally still mashed together. I wrote an all purpose query to split the lines based on previous answer, but with added bonus that all field extractions for the sourcetype work fine after putting the splitted data into the _raw field. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex max_match=0 field=_raw "(?&amp;lt;lineData&amp;gt;[^\n]+)" | mvexpand lineData | eval _raw=lineData 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 16:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191763#M38192</guid>
      <dc:creator>peter_krammer</dc:creator>
      <dc:date>2016-02-11T16:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191764#M38193</link>
      <description>&lt;P&gt;This one was such a saviour !&lt;/P&gt;

&lt;P&gt;Thanks for sharing this...&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 19:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191764#M38193</guid>
      <dc:creator>RichaSingh</dc:creator>
      <dc:date>2016-05-30T19:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191765#M38194</link>
      <description>&lt;P&gt;Yes, but you will have to clear the &lt;CODE&gt;fishbucket&lt;/CODE&gt; first.&lt;/P&gt;</description>
      <pubDate>Mon, 30 May 2016 23:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191765#M38194</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-05-30T23:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191766#M38195</link>
      <description>&lt;P&gt;Just in case the next question will be &lt;CODE&gt;How can I clear the fishbucket?&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;Please find the docs on &lt;CODE&gt;how to remove a file from the fishbucket using btprobe&lt;/CODE&gt; here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Troubleshooting/CommandlinetoolsforusewithSupport#btprobe"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/Troubleshooting/CommandlinetoolsforusewithSupport#btprobe&lt;/A&gt; or &lt;CODE&gt;How to clean the fishbucket&lt;/CODE&gt; here &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.4.0/Indexer/RemovedatafromSplunk#Remove_data_from_one_or_all_indexes"&gt;http://docs.splunk.com/Documentation/Splunk/6.4.0/Indexer/RemovedatafromSplunk#Remove_data_from_one_or_all_indexes&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 00:17:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191766#M38195</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2016-05-31T00:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to split multiple lines of data into individual lines?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191767#M38196</link>
      <description>&lt;P&gt;Thanks this worked!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jul 2018 18:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-split-multiple-lines-of-data-into-individual-lines/m-p/191767#M38196</guid>
      <dc:creator>nick405060</dc:creator>
      <dc:date>2018-07-27T18:43:24Z</dc:date>
    </item>
  </channel>
</rss>

