<?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: Filtering on specific multivalue field value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405597#M117253</link>
    <description>&lt;P&gt;Something like &lt;CODE&gt;| where mvindex(myField, 0)="foo"&lt;/CODE&gt; ?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Jan 2019 18:01:06 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-01-15T18:01:06Z</dc:date>
    <item>
      <title>Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405596#M117252</link>
      <description>&lt;P&gt;How do I return results based on a specific value of a multivalue field?&lt;/P&gt;

&lt;P&gt;Example&lt;BR /&gt;
returns all results where the 1st value of a multivalue field equals foo.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 16:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405596#M117252</guid>
      <dc:creator>frbuser</dc:creator>
      <dc:date>2019-01-15T16:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405597#M117253</link>
      <description>&lt;P&gt;Something like &lt;CODE&gt;| where mvindex(myField, 0)="foo"&lt;/CODE&gt; ?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:01:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405597#M117253</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-01-15T18:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405598#M117254</link>
      <description>&lt;P&gt;Hi @frbuser&lt;/P&gt;

&lt;P&gt;Please try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
| eval test_column="test,cpu,foo,digit" 
| append 
    [| makeresults 
    | eval test_column="foo,one,two"] 
| makemv delim="," test_column 
| eval found=mvfind(test_column,"foo") 
| search found=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here &lt;CODE&gt;found=0&lt;/CODE&gt; when foo appears as first value&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405598#M117254</guid>
      <dc:creator>vnravikumar</dc:creator>
      <dc:date>2019-01-15T18:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405599#M117255</link>
      <description>&lt;P&gt;This requires that you retrieve a subset of events first. Is there anyway to do this earlier within a search command?&lt;/P&gt;

&lt;P&gt;Otherwise it makes the query less efficient because I have to retrieve a high volume of events then further filter it with "where".&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 14:28:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405599#M117255</guid>
      <dc:creator>frbuser</dc:creator>
      <dc:date>2019-01-16T14:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405600#M117256</link>
      <description>&lt;P&gt;This requires adding a new field to every event. Is there anyway to do this via the initial search command?&lt;/P&gt;

&lt;P&gt;The whole purpose is to retrieve the required events and doing it this way would require me to retrieve a larger subset first which is not very efficient in my case. &lt;/P&gt;

&lt;P&gt;For some background, I am working with Windows event logs and I am filtering based on the Account_Name field. This field is however a multivalue field.&lt;/P&gt;

&lt;P&gt;If I filter by any other criteria first, the query takes a long time to execute because there are so may logs to iterate through.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 14:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405600#M117256</guid>
      <dc:creator>frbuser</dc:creator>
      <dc:date>2019-01-16T14:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405601#M117257</link>
      <description>&lt;P&gt;It would help to see some sample events.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 13:52:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405601#M117257</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-01-17T13:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering on specific multivalue field value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405602#M117258</link>
      <description>&lt;P&gt;Expanding on @richgalloway's &lt;A href="https://answers.splunk.com/answering/715911/view.html"&gt;answer&lt;/A&gt;, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=ndx sourcetype=srctp mvfield="foo"
| where mvindex(mvfield,0)="foo"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Doing the &lt;CODE&gt;mvfield="foo"&lt;/CODE&gt; in the first line of the search will throw-away all events where that individual value is not in the multivalue field.&lt;/P&gt;

&lt;P&gt;Then the &lt;CODE&gt;| where&lt;/CODE&gt; clause will further trim it&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 18:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Filtering-on-specific-multivalue-field-value/m-p/405602#M117258</guid>
      <dc:creator>wmyersas</dc:creator>
      <dc:date>2019-10-17T18:44:15Z</dc:date>
    </item>
  </channel>
</rss>

