<?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: About warnings when dividing multiple multi-value data using mvexpand. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371745#M109385</link>
    <description>&lt;P&gt;Facing the same issue @yutaka1005 . Did you find any solution?&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 05:46:19 GMT</pubDate>
    <dc:creator>gsrivastava</dc:creator>
    <dc:date>2017-10-05T05:46:19Z</dc:date>
    <item>
      <title>About warnings when dividing multiple multi-value data using mvexpand.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371744#M109384</link>
      <description>&lt;P&gt;In the following search I divide data with multiple multi-value fields into one line at a time.&lt;/P&gt;

&lt;P&gt;See this answer ↓&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/25653/mvexpand-multiple-multi-value-fields.html" target="_blank"&gt;https://answers.splunk.com/answers/25653/mvexpand-multiple-multi-value-fields.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;| eval reading=mvzip(multi_value_field1, multi_value_field2) | eval reading=mvzip(reading, multi_value_field3) | eval reading=mvzip(reading, multi_value_field4) | mvexpand reading | makemv reading delim="," | eval field1=mvindex(reading, 0) | eval field2=mvindex(reading, 1) | eval field3=mvindex(reading, 2) | eval field4=mvindex(reading, 3) | ...&lt;/P&gt;

&lt;P&gt;The result is OK with this search, but somehow the warning "Field 'reading' does not exist in the data." Is displayed.&lt;BR /&gt;
Is there a way to avoid this warning?&lt;/P&gt;

&lt;P&gt;my splunk ver : 6.5.3&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 14:39:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371744#M109384</guid>
      <dc:creator>yutaka1005</dc:creator>
      <dc:date>2020-09-29T14:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: About warnings when dividing multiple multi-value data using mvexpand.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371745#M109385</link>
      <description>&lt;P&gt;Facing the same issue @yutaka1005 . Did you find any solution?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 05:46:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371745#M109385</guid>
      <dc:creator>gsrivastava</dc:creator>
      <dc:date>2017-10-05T05:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: About warnings when dividing multiple multi-value data using mvexpand.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371746#M109386</link>
      <description>&lt;P&gt;Okay, assuming you have the same number of values for each multivalue field, there is a simpler method.  And I'm annoyed that it's taken me six months to figure it out, all the while doing that complicated &lt;CODE&gt;mvzip&lt;/CODE&gt; two-step.&lt;/P&gt;

&lt;P&gt;Do this instead...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval myFan=mvrange(0,mvcount(field1))
| mvexpand myFan
| eval field1=mvindex(field1,myFan)
| eval field2=mvindex(field2,myFan)
| eval field3=mvindex(field3,myFan)
| eval field4=mvindex(field4,myFan)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 Oct 2017 18:46:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371746#M109386</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-06T18:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: About warnings when dividing multiple multi-value data using mvexpand.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371747#M109387</link>
      <description>&lt;P&gt;@DalJeanis Are you assuming here that all the events have just 4 values in a multi-valued field? What if , each event has different no. of values?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Oct 2017 09:53:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371747#M109387</guid>
      <dc:creator>gsrivastava</dc:creator>
      <dc:date>2017-10-09T09:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: About warnings when dividing multiple multi-value data using mvexpand.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371748#M109388</link>
      <description>&lt;P&gt;@gsrivastava - The number 4 comes from the fact that there were four fields that were mvzipped together in  @yutaka1005's example.  The only assumption is that each of the four fields has the same number of values... although if not, then a backstop is that field1 is the field with the MOST values. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2017 03:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/About-warnings-when-dividing-multiple-multi-value-data-using/m-p/371748#M109388</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-10T03:52:14Z</dc:date>
    </item>
  </channel>
</rss>

