<?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 Match and Exclude Specific Values in a Dynamic Field in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Match-and-Exclude-Specific-Values-in-a-Dynamic-Field/m-p/490079#M8786</link>
    <description>&lt;P&gt;Greetings Splunkers,&lt;/P&gt;

&lt;P&gt;I'm attempting to create a dashboard panel that creates a count of "Roles" by Role_Names, however, I need to exclude specific field values from a dynamic field labeled "Roles" based on the Role_Name.  &lt;/P&gt;

&lt;P&gt;For example, if I have Role_Name=Security AND Roles=A, B, C, D, I want to exclude all those "Roles" for that specific "Role_Name and return a count value of "0".   However, today, the "Roles" for Role_Name=Security can equal A, B, C, &amp;amp; D but next week it might equal A, B, &amp;amp; F, in this case, I'd want to still exclude A &amp;amp; B but count F. &lt;/P&gt;

&lt;P&gt;Additionally, Roles can be associated with other Role_Names so I can't just exclude them from the search altogether.  I know there's a way to accomplish this I just can't recall it.  Any assistance is greatly appreciated.  &lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:17:01 GMT</pubDate>
    <dc:creator>cquinney</dc:creator>
    <dc:date>2020-09-30T05:17:01Z</dc:date>
    <item>
      <title>Match and Exclude Specific Values in a Dynamic Field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Match-and-Exclude-Specific-Values-in-a-Dynamic-Field/m-p/490079#M8786</link>
      <description>&lt;P&gt;Greetings Splunkers,&lt;/P&gt;

&lt;P&gt;I'm attempting to create a dashboard panel that creates a count of "Roles" by Role_Names, however, I need to exclude specific field values from a dynamic field labeled "Roles" based on the Role_Name.  &lt;/P&gt;

&lt;P&gt;For example, if I have Role_Name=Security AND Roles=A, B, C, D, I want to exclude all those "Roles" for that specific "Role_Name and return a count value of "0".   However, today, the "Roles" for Role_Name=Security can equal A, B, C, &amp;amp; D but next week it might equal A, B, &amp;amp; F, in this case, I'd want to still exclude A &amp;amp; B but count F. &lt;/P&gt;

&lt;P&gt;Additionally, Roles can be associated with other Role_Names so I can't just exclude them from the search altogether.  I know there's a way to accomplish this I just can't recall it.  Any assistance is greatly appreciated.  &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:17:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Match-and-Exclude-Specific-Values-in-a-Dynamic-Field/m-p/490079#M8786</guid>
      <dc:creator>cquinney</dc:creator>
      <dc:date>2020-09-30T05:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Match and Exclude Specific Values in a Dynamic Field</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Match-and-Exclude-Specific-Values-in-a-Dynamic-Field/m-p/490080#M8787</link>
      <description>&lt;P&gt;I was able to find the answer with the assistance of a colleague.  After running a stats command to correlate the data based on specific prerequisites, I did the following:&lt;/P&gt;

&lt;P&gt;| mvexpand Roles&lt;BR /&gt;
| search NOT (Role_Name=Security (Roles=A OR Role=B OR etc))&lt;BR /&gt;
| stats values(blah) as blah  count(Roles) as Role_Count by Role_Name&lt;/P&gt;

&lt;P&gt;This provided me with my desired outcome and keeps my  "Role_Count" flexible for that particular Role_Name.  Hope this helps someone else down the line as well. &lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Match-and-Exclude-Specific-Values-in-a-Dynamic-Field/m-p/490080#M8787</guid>
      <dc:creator>cquinney</dc:creator>
      <dc:date>2020-09-30T05:17:09Z</dc:date>
    </item>
  </channel>
</rss>

