<?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: How do I only show results using a token of a multivalue field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293812#M88702</link>
    <description>&lt;P&gt;Missing end parenthesis in the mvfilter version, just like mine.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Mar 2017 15:34:02 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-03-24T15:34:02Z</dc:date>
    <item>
      <title>How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293807#M88697</link>
      <description>&lt;P&gt;Hi all, I am new to using SPLUNK so please bare with me....&lt;/P&gt;

&lt;P&gt;I have created a dashboard to utilise tokens in drop downs.  I have a multi value field which I want to only show one value when I use the token.  The multi value field is made up of lots of users with an returncode and description.  &lt;/P&gt;

&lt;P&gt;field name=&lt;STRONG&gt;newuser&lt;/STRONG&gt;&lt;BR /&gt;
user1,10,NewUser|user2,20,existinguser|user3,30,deleteduser.&lt;/P&gt;

&lt;P&gt;So I would like for token to be &lt;STRONG&gt;$user$&lt;/STRONG&gt; which I know how to define, but how do I search the multi value field to only show me the results in the same field as my dropdown.&lt;/P&gt;

&lt;P&gt;e.g. If I choose user1 in the drop down then the newuser field changes to show me user1,10,NewUser, if I choose user2 then it only shows me user2,20,existinguser?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 12:23:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293807#M88697</guid>
      <dc:creator>Reidap</dc:creator>
      <dc:date>2017-03-24T12:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293808#M88698</link>
      <description>&lt;P&gt;Depending on how you are feeding the information, it will be something like this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where like($user$,multivaluefield)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;...or this... &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval outputfield=mvfilter(match(multivaluefield,"$user$"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 13:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293808#M88698</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-24T13:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293809#M88699</link>
      <description>&lt;P&gt;I think like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... newuser="$user$" | eval newuser=mvfilter(like(newuser,"$user$"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... newuser="$user$" | mvexpand newuser | search newuser="$user$"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293809#M88699</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293810#M88700</link>
      <description>&lt;P&gt;My bet is on mvfilter. &lt;/P&gt;

&lt;P&gt;You are missing the eval command there and you don't need % in the match command.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 14:47:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293810#M88700</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-03-24T14:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293811#M88701</link>
      <description>&lt;P&gt;Very sloppy this morning.  I was also missing an end parenthesis.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 15:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293811#M88701</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-24T15:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293812#M88702</link>
      <description>&lt;P&gt;Missing end parenthesis in the mvfilter version, just like mine.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 15:34:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293812#M88702</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-03-24T15:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293813#M88703</link>
      <description>&lt;P&gt;That's what I get for answering without testing.  Sloppy indeed; thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:39:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293813#M88703</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-03-24T18:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I only show results using a token of a multivalue field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293814#M88704</link>
      <description>&lt;P&gt;@Reidap...You should provide you search query with mocked up details for us to help better. We would need to know how you are getting the multi-valued field?&lt;/P&gt;

&lt;P&gt;For example if &lt;BR /&gt;
UserName=User1, User2, User3&lt;/P&gt;

&lt;P&gt;UserName="*" in your base search may give you multi-valued field when you try to gather values(UserName)&lt;/P&gt;

&lt;P&gt;In case you have a single user selected UserName="User1" in your base search will give single user even when you perform values(UserName).&lt;/P&gt;

&lt;P&gt;So in this case you need to Add Static default value to your dropdown for All=* then use &lt;STRONG&gt;UserName="$user$"&lt;/STRONG&gt; in your search query. Drop down default value will be All or *.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 18:50:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-only-show-results-using-a-token-of-a-multivalue-field/m-p/293814#M88704</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-03-24T18:50:13Z</dc:date>
    </item>
  </channel>
</rss>

