<?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: Split multiline value field into separate lines in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288510#M87362</link>
    <description>&lt;P&gt;Try like this (runanywhere search, everything except last line is just to generate sample data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval Range="2017/02/06 04:11:27|Test1|Test|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User1|c:\users\User1\appdata\roaming\microsoft\Test.exe||0|1|0|0| 2017/02/06 18:00:37|MTest2|VTest|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User2|c:\users\User2\appdata\roaming\microsoft\test2.exe||0|1|0|0| 2017/02/07 05:46:32|VTest3|VHost|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User3|c:\users\User3\appdata\roaming\microsoft\Test4.exe||0|1|0|0|" | table Range 
| eval Range=split(replace(Range,"(\d{4}\/\d{2}\/\d{2})","#LB#\1"),"#LB#")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Feb 2017 16:15:01 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-02-07T16:15:01Z</dc:date>
    <item>
      <title>Split multiline value field into separate lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288508#M87360</link>
      <description>&lt;P&gt;I have a field which have multilines, how to split this field delimited by timestamp into separate lines&lt;/P&gt;

&lt;P&gt;2017/02/06 04:11:27|Test1|Test|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User1|c:\users\User1\appdata\roaming\microsoft\Test.exe||0|1|0|0| 2017/02/06 18:00:37|MTest2|VTest|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User2|c:\users\User2\appdata\roaming\microsoft\test2.exe||0|1|0|0| 2017/02/07 05:46:32|VTest3|VHost|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User3|c:\users\User3\appdata\roaming\microsoft\Test4.exe||0|1|0|0|&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 09:30:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288508#M87360</guid>
      <dc:creator>srinathd</dc:creator>
      <dc:date>2017-02-07T09:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Split multiline value field into separate lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288509#M87361</link>
      <description>&lt;P&gt;Have you tried putting &lt;CODE&gt;BREAK_ONLY_BEFORE_DATE = true&lt;/CODE&gt; in your props.conf file?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 15:42:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288509#M87361</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-02-07T15:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Split multiline value field into separate lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288510#M87362</link>
      <description>&lt;P&gt;Try like this (runanywhere search, everything except last line is just to generate sample data)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval Range="2017/02/06 04:11:27|Test1|Test|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User1|c:\users\User1\appdata\roaming\microsoft\Test.exe||0|1|0|0| 2017/02/06 18:00:37|MTest2|VTest|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User2|c:\users\User2\appdata\roaming\microsoft\test2.exe||0|1|0|0| 2017/02/07 05:46:32|VTest3|VHost|Virus on hard disk (web download, copy or install)|RDN/Generic PUP.x|User3|c:\users\User3\appdata\roaming\microsoft\Test4.exe||0|1|0|0|" | table Range 
| eval Range=split(replace(Range,"(\d{4}\/\d{2}\/\d{2})","#LB#\1"),"#LB#")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Feb 2017 16:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288510#M87362</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-02-07T16:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Split multiline value field into separate lines</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288511#M87363</link>
      <description>&lt;P&gt;Actually i tried with | eval Range=split(replace(Range,"(\d{4}\/\d{2}\/\d{2})","#LB#$1"),"#LB#"), later got it. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 07:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Split-multiline-value-field-into-separate-lines/m-p/288511#M87363</guid>
      <dc:creator>srinathd</dc:creator>
      <dc:date>2017-02-08T07:44:49Z</dc:date>
    </item>
  </channel>
</rss>

