<?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: Remove multiple values from a multi-value field in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Remove-multiple-values-from-a-multi-value-field/m-p/245896#M73314</link>
    <description>&lt;P&gt;I would use mvfilter, specially in the cases where patterns to be filtered is small and entities in mv field is high. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval field1="pink,fluffy,unicorns" | table field1 | makemv field1 delim="," | eval field1_filtered=mvfilter(NOT match(field1,"pink") AND NOT match(field1,"fluffy"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 22 Jan 2016 21:34:32 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2016-01-22T21:34:32Z</dc:date>
    <item>
      <title>Remove multiple values from a multi-value field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-multiple-values-from-a-multi-value-field/m-p/245895#M73313</link>
      <description>&lt;P&gt;I would like to remove multiple values from a multi-value field.&lt;/P&gt;

&lt;P&gt;Example:&lt;/P&gt;

&lt;P&gt;field_multivalue = pink,fluffy,unicorns&lt;/P&gt;

&lt;P&gt;Remove pink and fluffy so that:&lt;/P&gt;

&lt;P&gt;field_multivalue = unicorns&lt;/P&gt;

&lt;P&gt;I am thinking maybe:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(field1) AS field_multivalue by field2 | mvfilter
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats values(field1) AS field_multivalue by field2  | mvexpand field_multivalue | search field_multivalue!="pink" field_multivalue!="fluffy" | mvcombine field_multivalue 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How would you recommend doing this?  The list of values to filter out is over a dozen.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 20:33:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-multiple-values-from-a-multi-value-field/m-p/245895#M73313</guid>
      <dc:creator>landen99</dc:creator>
      <dc:date>2016-01-22T20:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: Remove multiple values from a multi-value field</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Remove-multiple-values-from-a-multi-value-field/m-p/245896#M73314</link>
      <description>&lt;P&gt;I would use mvfilter, specially in the cases where patterns to be filtered is small and entities in mv field is high. Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| gentimes start=-1 | eval field1="pink,fluffy,unicorns" | table field1 | makemv field1 delim="," | eval field1_filtered=mvfilter(NOT match(field1,"pink") AND NOT match(field1,"fluffy"))
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 22 Jan 2016 21:34:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Remove-multiple-values-from-a-multi-value-field/m-p/245896#M73314</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-01-22T21:34:32Z</dc:date>
    </item>
  </channel>
</rss>

