<?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 Splitting a multivalue field on carreige return in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splitting-a-multivalue-field-on-carreige-return/m-p/417536#M169218</link>
    <description>&lt;P&gt;good morning, &lt;BR /&gt;
I am in the process of breaking out data from a data source that in one field contains a list of similar data for a single device (example below).&lt;/P&gt;

&lt;P&gt;example:&lt;BR /&gt;
(app | version\napp |version\n....)&lt;/P&gt;

&lt;P&gt;I have been trying to use a split command using \n as the delimiter and that seems to be working, but when I try to expand the events, only a fraction of the events return.  I have included a sample of the code i've been using for your review.&lt;/P&gt;

&lt;P&gt;.....|eval new=split(_raw,"\n") |mvexpand new&lt;/P&gt;

&lt;P&gt;This seems pretty straight forward, but it doesn't throw an error and it does bring back data, but a small fraction of the what the total should be.  &lt;/P&gt;

&lt;P&gt;Any suggestions would be greatly appreciated?&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 14:34:40 GMT</pubDate>
    <dc:creator>jeffsegal</dc:creator>
    <dc:date>2018-05-24T14:34:40Z</dc:date>
    <item>
      <title>Splitting a multivalue field on carreige return</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-a-multivalue-field-on-carreige-return/m-p/417536#M169218</link>
      <description>&lt;P&gt;good morning, &lt;BR /&gt;
I am in the process of breaking out data from a data source that in one field contains a list of similar data for a single device (example below).&lt;/P&gt;

&lt;P&gt;example:&lt;BR /&gt;
(app | version\napp |version\n....)&lt;/P&gt;

&lt;P&gt;I have been trying to use a split command using \n as the delimiter and that seems to be working, but when I try to expand the events, only a fraction of the events return.  I have included a sample of the code i've been using for your review.&lt;/P&gt;

&lt;P&gt;.....|eval new=split(_raw,"\n") |mvexpand new&lt;/P&gt;

&lt;P&gt;This seems pretty straight forward, but it doesn't throw an error and it does bring back data, but a small fraction of the what the total should be.  &lt;/P&gt;

&lt;P&gt;Any suggestions would be greatly appreciated?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 14:34:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-a-multivalue-field-on-carreige-return/m-p/417536#M169218</guid>
      <dc:creator>jeffsegal</dc:creator>
      <dc:date>2018-05-24T14:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Splitting a multivalue field on carreige return</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splitting-a-multivalue-field-on-carreige-return/m-p/417537#M169219</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....| eval new=_raw | eval new=split(new,"\\n") |mvexpand new
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR (if above doesn't work)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;--- | eval new=replace(_raw,"[\r\n]+","##LBreak##") | makemv new delim="##LBreak##" | mvexpand new
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 May 2018 16:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splitting-a-multivalue-field-on-carreige-return/m-p/417537#M169219</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-05-24T16:28:35Z</dc:date>
    </item>
  </channel>
</rss>

