<?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: Is it possible to use inputlookup inside mvfind? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227556#M98965</link>
    <description>&lt;P&gt;Is field &lt;CODE&gt;Transactions&lt;/CODE&gt; a &lt;CODE&gt;multi-valued&lt;/CODE&gt; field?&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2015 14:54:52 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-09-17T14:54:52Z</dc:date>
    <item>
      <title>Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227555#M98964</link>
      <description>&lt;P&gt;I have a multivalue field which I am trying to search for a list which is coming from an inputlookup (in lieu of hard-coding into mvfind). Is this possible? I've not found any answered questions on this yet. What I want to do is something like below, but the syntax isn't valid. The inputlookup subsearch would need to be formatted to an OR'd list like &lt;CODE&gt;Trans1|Trans3|Trans4|Trans9|...|TransN&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;| stats count min(_time) AS Start max(_time) as End values(Transaction) AS Transactions by correlationField | eval myTransaction=mvfind(Transactions, "[|inputlookup myTransactionLookups | search owner="me" | fields TransactionName]")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2015 14:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227555#M98964</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2015-09-17T14:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227556#M98965</link>
      <description>&lt;P&gt;Is field &lt;CODE&gt;Transactions&lt;/CODE&gt; a &lt;CODE&gt;multi-valued&lt;/CODE&gt; field?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 14:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227556#M98965</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-17T14:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227557#M98966</link>
      <description>&lt;P&gt;yes, I guess my mocked up names are not as reflective as they should have been. But yes, it's a multivalue field where generally only one of the values will match something in my inputlookup. I want to match that single value from Transactions to my inputlookup value and put it as a new field myTransaction to be summed &amp;amp; graphed, etc...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 15:04:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227557#M98966</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2015-09-17T15:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227558#M98967</link>
      <description>&lt;P&gt;How many rows are there in lookup ?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 15:54:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227558#M98967</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-17T15:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227559#M98968</link>
      <description>&lt;P&gt;The largest return from the inputlookup would be about 10 rows currently. Some may only be 1-2.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2015 16:03:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227559#M98968</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2015-09-17T16:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227560#M98969</link>
      <description>&lt;P&gt;Assuming number of values in both myTransactionLookups  and Transactions field is not very high (say about 2 digits max), and either myTransactionLookups  has an extra field which can be returned OR you can add an extra field, say "ReturnedField", then try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search&amp;gt;| stats count min(_time) AS Start max(_time) as End values(Transaction) AS Transactions by correlationField | mvexpand Transactions | eval owner="me" | lookup myTransactionLookups owner TransactionName as Transactions OUTPUT ReturnedField | where isnotnull(ReturnedField) | stats values(Transactions) as Transactions by Start End correlationField
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Sep 2015 17:57:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227560#M98969</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-17T17:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227561#M98970</link>
      <description>&lt;P&gt;Assuming that should be "mvexpand"? I'm getting an error on "evexpand". The number of returns from myTransactionLookups could be up to 10 and the Transactions field has maybe 4 values max. I'm not sure about the last stats you threw on there, but I seem to be getting what I need without it I think; at least in my test area. I need to go distribute the change to my dashboards in Dev, then push to UAT to validate further.&lt;/P&gt;

&lt;P&gt;Thanks! Fingers crossed!&lt;/P&gt;

&lt;P&gt;It threw me at first when I pieced this into my search because the mvexpand looked at first take like it was aligning the transactions to the first value in the MV field, but on closer look it duplicates them N times where N is the number of values in the MV field (right?). The "where isnotnull(ReturnedField)" then dumps the duplicates that don't match. &lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 12:35:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227561#M98970</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2015-09-18T12:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227562#M98971</link>
      <description>&lt;P&gt;1) Yes, it should be mvexpand,typo corrected.&lt;BR /&gt;
2) After mvexpand, each transaction will appear as different row, so total rows*N where N is number of mv field count.&lt;BR /&gt;
3) I assumed that there could be more that 1 Transactions that can appear in the lookup, so I added last stats. You could ignore it if you're sure that's not the case.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Sep 2015 13:48:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227562#M98971</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-09-18T13:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use inputlookup inside mvfind?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227563#M98972</link>
      <description>&lt;P&gt;Late update on this. This did &lt;EM&gt;work&lt;/EM&gt;, but should be noted with a caveat. Don't try this with very large data sets as it will overwhelm the search head. If you are sure your result set is small enough, then it's fine. I ultimately had to go to away from this method for this particular problem due to size of one of the search result sets, but it works for smaller searches.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Dec 2015 13:44:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Is-it-possible-to-use-inputlookup-inside-mvfind/m-p/227563#M98972</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2015-12-08T13:44:09Z</dc:date>
    </item>
  </channel>
</rss>

