<?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 exclude fields with certain values from a table when the event has multiple values for the same fields? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317815#M95094</link>
    <description>&lt;P&gt;If you are trying to eliminate just the words from the multivalue field, then use &lt;CODE&gt;mvfilter()&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Indicator=mvfilter(NOT match(Indicator,"^(POLICY_TERMINATE|MALWARE_DROP)$"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The doc is on this page... &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/MultivalueEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/MultivalueEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And here are a couple of related answers...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/13382/removing-some-field-values-from-a-mulitiple-value-field.html"&gt;https://answers.splunk.com/answers/13382/removing-some-field-values-from-a-mulitiple-value-field.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/346961/remove-multiple-values-from-a-multi-value-field.html"&gt;https://answers.splunk.com/answers/346961/remove-multiple-values-from-a-multi-value-field.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2017 02:26:56 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-10-19T02:26:56Z</dc:date>
    <item>
      <title>How do I exclude fields with certain values from a table when the event has multiple values for the same fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317814#M95093</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;As the title says. Refer to the screenshot below too;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="The event"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3695iA04DD77EAFBFDCF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="The event" alt="The event" /&gt;&lt;/span&gt;&lt;BR /&gt;
The above is the log for the event. as you can see, there are multiple indicatorName in a single event.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="The table"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3696iFA36077C49A8698A/image-size/large?v=v2&amp;amp;px=999" role="button" title="The table" alt="The table" /&gt;&lt;/span&gt;&lt;BR /&gt;
And this is the table when I do a top. However, I only want certain values to show. E.g. Only show &lt;CODE&gt;indicatorName: DETECTED_MALWARE_APP&lt;/CODE&gt; and not &lt;CODE&gt;indicatorName: CODE_DROP&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 01:22:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317814#M95093</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2017-10-19T01:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude fields with certain values from a table when the event has multiple values for the same fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317815#M95094</link>
      <description>&lt;P&gt;If you are trying to eliminate just the words from the multivalue field, then use &lt;CODE&gt;mvfilter()&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval Indicator=mvfilter(NOT match(Indicator,"^(POLICY_TERMINATE|MALWARE_DROP)$"))
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The doc is on this page... &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/MultivalueEvalFunctions"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.0/SearchReference/MultivalueEvalFunctions&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And here are a couple of related answers...&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/13382/removing-some-field-values-from-a-mulitiple-value-field.html"&gt;https://answers.splunk.com/answers/13382/removing-some-field-values-from-a-mulitiple-value-field.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/346961/remove-multiple-values-from-a-multi-value-field.html"&gt;https://answers.splunk.com/answers/346961/remove-multiple-values-from-a-multi-value-field.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 02:26:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317815#M95094</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-10-19T02:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude fields with certain values from a table when the event has multiple values for the same fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317816#M95095</link>
      <description>&lt;P&gt;I tried it with &lt;CODE&gt;eval threatInfo.indicators{}.indicatorName=mvfilter(match(threatInfo.indicators{}.indicatorName, "DETECTED_MALWARE_APP"))&lt;/CODE&gt; but it's throwing &lt;CODE&gt;Error in 'eval' command: The expression is malformed. Expected ).&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 03:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317816#M95095</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2017-10-19T03:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I exclude fields with certain values from a table when the event has multiple values for the same fields?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317817#M95096</link>
      <description>&lt;P&gt;Nevermind, found out the issue. Splunk doesn't like it when my field name is &lt;CODE&gt;threatInfo.indicators{}.indicatorName&lt;/CODE&gt;. Had to rename it to something else and then it worked. Thank you! Will mark your answer as correct now.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 03:13:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-exclude-fields-with-certain-values-from-a-table-when/m-p/317817#M95096</guid>
      <dc:creator>ZacEsa</dc:creator>
      <dc:date>2017-10-19T03:13:15Z</dc:date>
    </item>
  </channel>
</rss>

