<?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 Filter condition based on multiple events in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166648#M33760</link>
    <description>&lt;P&gt;Hi There,&lt;BR /&gt;
I have a search that outputs table data that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Customer    Service_Name    User
Customer-123    Service-AAA User-A
Customer-123    Service-BBB User-A
Customer-123    Service-CCC User-A
Customer-123    Service-AAA User-B
Customer-123    Service-BBB User-B
Customer-123    Service-AAA User-C
Customer-123    Service-CCC User-C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to filter this table so that ‘Service-CCC’ is removed if the same user also has ‘Service-BBB’. The ‘Service-CCC’ should be kept if the user does not have ‘Service-BBB’. So the filtered output should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Customer    Service_Name    User
Customer-123    Service-AAA User-A
Customer-123    Service-BBB User-A
Customer-123    Service-AAA User-B
Customer-123    Service-BBB User-B
Customer-123    Service-AAA User-C
Customer-123    Service-CCC User-C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Aug 2014 03:11:07 GMT</pubDate>
    <dc:creator>mahesh_ravji1</dc:creator>
    <dc:date>2014-08-01T03:11:07Z</dc:date>
    <item>
      <title>Filter condition based on multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166648#M33760</link>
      <description>&lt;P&gt;Hi There,&lt;BR /&gt;
I have a search that outputs table data that looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Customer    Service_Name    User
Customer-123    Service-AAA User-A
Customer-123    Service-BBB User-A
Customer-123    Service-CCC User-A
Customer-123    Service-AAA User-B
Customer-123    Service-BBB User-B
Customer-123    Service-AAA User-C
Customer-123    Service-CCC User-C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to filter this table so that ‘Service-CCC’ is removed if the same user also has ‘Service-BBB’. The ‘Service-CCC’ should be kept if the user does not have ‘Service-BBB’. So the filtered output should be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Customer    Service_Name    User
Customer-123    Service-AAA User-A
Customer-123    Service-BBB User-A
Customer-123    Service-AAA User-B
Customer-123    Service-BBB User-B
Customer-123    Service-AAA User-C
Customer-123    Service-CCC User-C
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2014 03:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166648#M33760</guid>
      <dc:creator>mahesh_ravji1</dc:creator>
      <dc:date>2014-08-01T03:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Filter condition based on multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166649#M33761</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Your base search giving Customer Service User fields | eventstats values(Service) as Services by User | eval include=if(isnotnull(mvfind(Services,"Service-BBB")) AND isnotnull(mvfind(Services,"Service-CCC")) AND Service="Service-CCC",0,1) | where include=1 | fields - include Services
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Aug 2014 17:24:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166649#M33761</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-08-01T17:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Filter condition based on multiple events</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166650#M33762</link>
      <description>&lt;P&gt;Thanks very much - this solved my problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Aug 2014 22:01:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Filter-condition-based-on-multiple-events/m-p/166650#M33762</guid>
      <dc:creator>mahesh_ravji1</dc:creator>
      <dc:date>2014-08-19T22:01:44Z</dc:date>
    </item>
  </channel>
</rss>

