<?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: Multivalue Field Filterung search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-Field-Filterung-search/m-p/463590#M130694</link>
    <description>&lt;P&gt;@mklhs ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search |where isnotnull(mvfind(field_name,"foo")) AND isnotnull(mvfind(field_name,"bar"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please note that the argument to mvfind is &lt;CODE&gt;REGEX&lt;/CODE&gt; . So based on your field value, you may combine that with regex as well&lt;/P&gt;

&lt;P&gt;Reference : &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/MultivalueEvalFunctions#mvfind.28MVFIELD.2C.22REGEX.22.29"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/MultivalueEvalFunctions#mvfind.28MVFIELD.2C.22REGEX.22.29&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2019 04:56:14 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2019-08-26T04:56:14Z</dc:date>
    <item>
      <title>Multivalue Field Filterung search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-Field-Filterung-search/m-p/463589#M130693</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I need your help.&lt;BR /&gt;
I have a field which contains multivalue.&lt;BR /&gt;
Example:&lt;BR /&gt;
Table&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;Foo&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;in cash&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;foo&lt;BR /&gt;
in cash&lt;/P&gt;

&lt;HR /&gt;

&lt;P&gt;I need a way to only display events that have foo and bar in this field. I tried to count the values and filter them accordingly but it doesn't work.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 17:24:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-Field-Filterung-search/m-p/463589#M130693</guid>
      <dc:creator>mklhs</dc:creator>
      <dc:date>2019-08-25T17:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue Field Filterung search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-Field-Filterung-search/m-p/463590#M130694</link>
      <description>&lt;P&gt;@mklhs ,&lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search |where isnotnull(mvfind(field_name,"foo")) AND isnotnull(mvfind(field_name,"bar"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please note that the argument to mvfind is &lt;CODE&gt;REGEX&lt;/CODE&gt; . So based on your field value, you may combine that with regex as well&lt;/P&gt;

&lt;P&gt;Reference : &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/MultivalueEvalFunctions#mvfind.28MVFIELD.2C.22REGEX.22.29"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/SearchReference/MultivalueEvalFunctions#mvfind.28MVFIELD.2C.22REGEX.22.29&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2019 04:56:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-Field-Filterung-search/m-p/463590#M130694</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-08-26T04:56:14Z</dc:date>
    </item>
  </channel>
</rss>

