<?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: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139040#M28596</link>
    <description>&lt;P&gt;In addition to being a number, N needs to be within the range of the length of the multivalued field. &lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2015 16:32:13 GMT</pubDate>
    <dc:creator>_d_</dc:creator>
    <dc:date>2015-02-09T16:32:13Z</dc:date>
    <item>
      <title>Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139035#M28591</link>
      <description>&lt;P&gt;Here's a quick question I am trying to implement calculated fields in props.conf using EVAL command following is the code that I am trying to implement:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EVAL-PAYXLINE_MV2=mvindex(PAYXLINE_MV,N,-1) 
EVAL-PAYXLINEGLOB=mvjoin(PAYXLINE_MV2," ")
EVAL-PAYXHASH=sha256(mvjoin(PAYXLINE_MV," "))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem is I am not able to get the first 2 commands working when I put mvindex and mvjoin directly but it works perfectly fine when I use mvjoin with sha256. Can you help me to solve this problem. Here is the documentation that I am following to define fields in props.conf.&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Knowledge/definecalcfields"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Knowledge/definecalcfields&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 13:58:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139035#M28591</guid>
      <dc:creator>tsawant</dc:creator>
      <dc:date>2015-02-09T13:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139036#M28592</link>
      <description>&lt;P&gt;Well, in your first two statements you're evaluating PAYXLINE_MV2 on the first and then calling it again on the second. Calculated fields are evaluated in parallel and not in sequence; i.e. PAYXLINE_MV2 is not availalbe to the 2nd statement when it tries to execute. Try something like this: &lt;/P&gt;

&lt;P&gt;EVAL-PAYXLINEGLOB=mvjoin(mvindex(PAYXLINE_MV,N,-1)," ")&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:55:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139036#M28592</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2020-09-28T18:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139037#M28593</link>
      <description>&lt;P&gt;Not working I tried doing that previously. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:58:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139037#M28593</guid>
      <dc:creator>tsawant</dc:creator>
      <dc:date>2015-02-09T15:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139038#M28594</link>
      <description>&lt;P&gt;Can you share your &lt;CODE&gt;props.conf&lt;/CODE&gt; and &lt;CODE&gt;transforms.conf&lt;/CODE&gt; lines for the PAYXLINE_MV field?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:02:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139038#M28594</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2015-02-09T16:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139039#M28595</link>
      <description>&lt;P&gt;That should work if 'PAYXLINE_MV' is indeed a multivalued field and 'N' is a number. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139039#M28595</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2015-02-09T16:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139040#M28596</link>
      <description>&lt;P&gt;In addition to being a number, N needs to be within the range of the length of the multivalued field. &lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139040#M28596</guid>
      <dc:creator>_d_</dc:creator>
      <dc:date>2015-02-09T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139041#M28597</link>
      <description>&lt;P&gt;yea its a multivalued field and N is number&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139041#M28597</guid>
      <dc:creator>tsawant</dc:creator>
      <dc:date>2015-02-09T16:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139042#M28598</link>
      <description>&lt;P&gt;mvjoin works perfectly in props.conf right ?&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2015 17:01:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/139042#M28598</guid>
      <dc:creator>tsawant</dc:creator>
      <dc:date>2015-02-10T17:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why are mvindex and mvjoin not working while using eval to define calculated fields in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/601397#M104797</link>
      <description>&lt;P&gt;This comment about it happening in parallel vs in order fixed an issue I had for days!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2022 17:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Why-are-mvindex-and-mvjoin-not-working-while-using-eval-to/m-p/601397#M104797</guid>
      <dc:creator>n00b</dc:creator>
      <dc:date>2022-06-10T17:33:30Z</dc:date>
    </item>
  </channel>
</rss>

