<?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 field-value from multivalue in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750026#M22660</link>
    <description>&lt;P&gt;I think i tried that,&lt;/P&gt;&lt;P&gt;But i found a solution with mvmap and if match...&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jul 2025 14:21:08 GMT</pubDate>
    <dc:creator>siv</dc:creator>
    <dc:date>2025-07-17T14:21:08Z</dc:date>
    <item>
      <title>Remove field-value from multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750021#M22658</link>
      <description>&lt;P&gt;I have&amp;nbsp; this table for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;Field1 | Field2&lt;/P&gt;&lt;P&gt;Value1 | value1 value2 value3&amp;nbsp;&lt;/P&gt;&lt;P&gt;Field2 is mv&lt;/P&gt;&lt;P&gt;I want to remove the value that already axits in field1 so the result be like this:&lt;/P&gt;&lt;P&gt;Field1 | Field2&lt;/P&gt;&lt;P&gt;Value1 | value2, value3&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didnt see the mvfilter support this&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 13:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750021#M22658</guid>
      <dc:creator>siv</dc:creator>
      <dc:date>2025-07-17T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field-value from multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750022#M22659</link>
      <description>&lt;LI-CODE lang="markup"&gt;| foreach mode=multivalue Field2
    [| eval new=if(&amp;lt;&amp;lt;ITEM&amp;gt;&amp;gt;!=Field1,mvappend(new,&amp;lt;&amp;lt;ITEM&amp;gt;&amp;gt;),new)]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Jul 2025 13:33:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750022#M22659</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2025-07-17T13:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field-value from multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750026#M22660</link>
      <description>&lt;P&gt;I think i tried that,&lt;/P&gt;&lt;P&gt;But i found a solution with mvmap and if match...&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 14:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750026#M22660</guid>
      <dc:creator>siv</dc:creator>
      <dc:date>2025-07-17T14:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field-value from multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750039#M22661</link>
      <description>&lt;P&gt;The simplest way is to use = rather than match, unless you need match. The problem with match is if your data contains anything that might be significant to the regular expression, e.g. if Value 1 is Va*ue, then that won't work well with match.&lt;/P&gt;&lt;P&gt;You can do it like this - example shows simple fields in Field1, 2 and 3 and then one with regex significant characters and shows Field6 works, but not Field7&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | fields - _time
| eval Field1="Value 1", Field2=split("Value 1,Value 2,Value 3", ",")
| eval Field3=mvmap(Field2, if(Field1=Field2, null(), Field2))
| eval Field4="Odd[Regex Chars?]Value 1", Field5=split("Odd[Regex Chars?]Value 1,Value 2,Value 3", ",")
| eval Field6_using_equals=mvmap(Field5, if(Field4=Field5, null(), Field5))
| eval Field7_using_match=mvmap(Field5, if(match(Field4,Field5), null(), Field5))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jul 2025 23:35:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750039#M22661</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2025-07-17T23:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field-value from multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750041#M22662</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/270081"&gt;@siv&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can consider using mvfilter as well.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval Field1="Value 1"
| eval Field2=split("Value 1,Value 2,Value 3", ",")
| eval Field2=mvfilter(match(Field2, "^(?!Value 1$).*"))&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Prewin&lt;BR /&gt;Splunk Enthusiast | Always happy to help! If this answer helped you, please consider marking it as the solution or giving a Karma. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 03:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750041#M22662</guid>
      <dc:creator>PrewinThomas</dc:creator>
      <dc:date>2025-07-18T03:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Remove field-value from multivalue</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750067#M22668</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/270081"&gt;@siv&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How about&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval Field1="value1", Field2="value1 value2 value3"
| eval Field2=split(Field2," ")
| foreach Field2 mode=multivalue [| eval Field2=mvappend(Field2,IF(&amp;lt;&amp;lt;ITEM&amp;gt;&amp;gt;!=Field1, &amp;lt;&amp;lt;ITEM&amp;gt;&amp;gt;,null()))]&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":glowing_star:"&gt;🌟&lt;/span&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Did this answer help you?&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;If so, please consider:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Adding karma to show it was useful&lt;/LI&gt;&lt;LI&gt;Marking it as the solution if it resolved your issue&lt;/LI&gt;&lt;LI&gt;Commenting if you need any clarification&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Your feedback encourages the volunteers in this community to continue contributing&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 07:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Remove-field-value-from-multivalue/m-p/750067#M22668</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-07-18T07:52:58Z</dc:date>
    </item>
  </channel>
</rss>

