<?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 to Filter out records if they match multiple criteria? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598076#M208265</link>
    <description>&lt;P&gt;About your first question - close, but not quite.&lt;/P&gt;&lt;P&gt;There is a significant difference between a&lt;/P&gt;&lt;PRE&gt;field!=value&lt;/PRE&gt;&lt;P&gt;condition and&lt;/P&gt;&lt;PRE&gt;NOT field=value&lt;/PRE&gt;&lt;P&gt;one (and similar constructions like a&amp;lt;=b and NOT a&amp;gt;b).&lt;/P&gt;&lt;P&gt;The condition "field!=value" matches all events where there is a field called "field" (has a non-null value) and this value is not equal to "value". But the "NOT field=value" matches all events where "field=value" condition is not fulfilled which means that the field called "field" can have a value different than "value" but also can have no value at all. So there might be a subset of your results which would match one of those conditions but not the other. It's up to you to decide which way you want it.&lt;/P&gt;&lt;P&gt;There is also a bit of a difference regarding matching multivalued fields. If you have a field called "field" which has two walues - "value1" and "value2", the condition&lt;/P&gt;&lt;PRE&gt;field!="value1"&lt;/PRE&gt;&lt;P&gt;will - a bit counterintuitively - match said field because the search conditions are matched against each value of the multivalued field separately. Therefore the "value2" value of that field will match that condition. But if you did a condition of&lt;/P&gt;&lt;PRE&gt;NOT field="value1"&lt;/PRE&gt;&lt;P&gt;the event would not match since the field="value1" condition would be fulfilled on the "value1" value and the negative condition would not be fulfilled.&lt;/P&gt;&lt;P&gt;A bit complicated, I know, but it's worth getting used to it to avoid surprises.&lt;/P&gt;&lt;P&gt;And about your initial question. Well, you should do something close to what &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; already showed but with one small detail&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search&amp;gt;&lt;BR /&gt;| eval is_s1_stopped=if(service="s1" AND state="stopped",1,0)&lt;BR /&gt;| eventstats values(is_s1_stopped) by host&lt;BR /&gt;| where NOT is_s1_stopped=1&lt;/PRE&gt;</description>
    <pubDate>Tue, 17 May 2022 11:59:57 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2022-05-17T11:59:57Z</dc:date>
    <item>
      <title>How to filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/597949#M208218</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I want to filter out some records if they match multiple criteria, for example:&lt;/P&gt;&lt;P&gt;host&amp;nbsp; &amp;nbsp;service&amp;nbsp; state&lt;BR /&gt;=================&lt;BR /&gt;h1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;/P&gt;&lt;P&gt;So I need to &lt;STRONG&gt;filter out only hosts that have multiple services and the host with s1 service is stopped&lt;/STRONG&gt;. The output should be like this:&lt;/P&gt;&lt;P&gt;host&amp;nbsp; &amp;nbsp;service&amp;nbsp; state&lt;BR /&gt;=================&lt;BR /&gt;h2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;/P&gt;&lt;P&gt;Explanation: First two records with h1 are gone as it had multiple services and the one with s1 was stopped. Also, h2 is still in the output because it's running only one service - s1, so it shouldn't be filtered out even though it's stopped.&lt;/P&gt;&lt;P&gt;Hope I could explain my problem,&lt;/P&gt;&lt;P&gt;Huge thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:03:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/597949#M208218</guid>
      <dc:creator>ahadalioglu</dc:creator>
      <dc:date>2022-05-17T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/597975#M208220</link>
      <description>&lt;P&gt;The eventstats command should help.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;... | eventstats dc(service) as serviceCount by host
| where (serviceCount &amp;gt; 1 AND service="s1" AND state="stopped")&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 May 2022 15:58:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/597975#M208220</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-05-16T15:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598072#M208264</link>
      <description>&lt;P&gt;Thanks for the solution, it partially does what I need but still, I need some adjustments as:&lt;/P&gt;&lt;P&gt;1. this keeps all records that are required to be filtered out (removed from the results), I guess it's enough to add NOT after &lt;STRONG&gt;where&lt;/STRONG&gt;, am I right?&lt;/P&gt;&lt;P&gt;2. another issue is that it filters out&amp;nbsp;&lt;STRONG&gt;only the records where it's stopped, but is supposed to remove all records of the same host(s)&lt;/STRONG&gt;, if you look at the first sample result, I've removed the first 2 records, not only the first one with stopped (2nd record with running also should be gone if it has service other than s1)&lt;/P&gt;&lt;P&gt;3. this was not mentioned in my example, but it appeared that there are some other related service names too that contain s1 (e.g. &lt;STRONG&gt;s1v1&lt;/STRONG&gt; or &lt;STRONG&gt;v1s1&lt;/STRONG&gt;), so dc(service) doesn't help here as I need something like&amp;nbsp;&lt;STRONG&gt;like(service,"%s1%") (or any better way)&amp;nbsp;&lt;/STRONG&gt;within dc() which seems doesn't work&lt;/P&gt;&lt;P&gt;Let me create a new sample and the required results:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;GIVEN:&lt;BR /&gt;&lt;/STRONG&gt;host&amp;nbsp; &amp;nbsp;service&amp;nbsp; state&lt;BR /&gt;=================&lt;BR /&gt;h0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1v1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopped&lt;BR /&gt;h0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v2s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopped&lt;BR /&gt;h1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;RESULTS SHOULD BE:&lt;/STRONG&gt;&lt;BR /&gt;host&amp;nbsp; &amp;nbsp;service&amp;nbsp; state&lt;BR /&gt;=================&lt;BR /&gt;h0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1v1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopped&lt;BR /&gt;h0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;v2s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopped&lt;BR /&gt;h2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;/P&gt;&lt;P&gt;Explanation: h0's are still there as the services are still related to s1 (contains s1) and they don't have any services other than s1, but h1'a are&amp;nbsp;&lt;STRONG&gt;both&lt;/STRONG&gt; gone (not only the first h1 with stopped)&lt;/P&gt;&lt;P&gt;Huge thanks in advance for your help, time, and efforts!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 12:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598072#M208264</guid>
      <dc:creator>ahadalioglu</dc:creator>
      <dc:date>2022-05-17T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598076#M208265</link>
      <description>&lt;P&gt;About your first question - close, but not quite.&lt;/P&gt;&lt;P&gt;There is a significant difference between a&lt;/P&gt;&lt;PRE&gt;field!=value&lt;/PRE&gt;&lt;P&gt;condition and&lt;/P&gt;&lt;PRE&gt;NOT field=value&lt;/PRE&gt;&lt;P&gt;one (and similar constructions like a&amp;lt;=b and NOT a&amp;gt;b).&lt;/P&gt;&lt;P&gt;The condition "field!=value" matches all events where there is a field called "field" (has a non-null value) and this value is not equal to "value". But the "NOT field=value" matches all events where "field=value" condition is not fulfilled which means that the field called "field" can have a value different than "value" but also can have no value at all. So there might be a subset of your results which would match one of those conditions but not the other. It's up to you to decide which way you want it.&lt;/P&gt;&lt;P&gt;There is also a bit of a difference regarding matching multivalued fields. If you have a field called "field" which has two walues - "value1" and "value2", the condition&lt;/P&gt;&lt;PRE&gt;field!="value1"&lt;/PRE&gt;&lt;P&gt;will - a bit counterintuitively - match said field because the search conditions are matched against each value of the multivalued field separately. Therefore the "value2" value of that field will match that condition. But if you did a condition of&lt;/P&gt;&lt;PRE&gt;NOT field="value1"&lt;/PRE&gt;&lt;P&gt;the event would not match since the field="value1" condition would be fulfilled on the "value1" value and the negative condition would not be fulfilled.&lt;/P&gt;&lt;P&gt;A bit complicated, I know, but it's worth getting used to it to avoid surprises.&lt;/P&gt;&lt;P&gt;And about your initial question. Well, you should do something close to what &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt; already showed but with one small detail&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search&amp;gt;&lt;BR /&gt;| eval is_s1_stopped=if(service="s1" AND state="stopped",1,0)&lt;BR /&gt;| eventstats values(is_s1_stopped) by host&lt;BR /&gt;| where NOT is_s1_stopped=1&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2022 11:59:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598076#M208265</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-17T11:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598087#M208269</link>
      <description>&lt;P&gt;Thanks for the clarification, I'd definitely need to take this into account beyond this...&lt;/P&gt;&lt;P&gt;Concerning the solution, unfortunately it still keeps on the screen some records:&lt;/P&gt;&lt;P&gt;This is what is the result:&lt;BR /&gt;host&amp;nbsp; &amp;nbsp;service&amp;nbsp; &amp;nbsp;state&lt;BR /&gt;====================&lt;BR /&gt;h0&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1v1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;h0 &amp;nbsp; &amp;nbsp; &amp;nbsp; v2s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; stopped&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;h1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; running&lt;/STRONG&gt;&lt;/EM&gt;&lt;BR /&gt;h2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopped&lt;BR /&gt;h3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;running&lt;BR /&gt;h4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;stopped&lt;/P&gt;&lt;P&gt;bold and italic record is still there - which should be also gone&amp;nbsp;&lt;STRONG&gt;because it's the same host which we filtered out with stopped s1 service&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hope we are very close to the solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;Thanks for the prompt collaboration, guys!&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 13:37:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598087#M208269</guid>
      <dc:creator>ahadalioglu</dc:creator>
      <dc:date>2022-05-17T13:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598089#M208270</link>
      <description>&lt;P&gt;Ahh... stupid mistake. I did the eventstats but didn't rename it so effectively I filtered on the wrong field afterwards.&lt;/P&gt;&lt;PRE&gt;&amp;lt;your search&amp;gt;&lt;BR /&gt;| eval is_s1_stopped=if(service="s1" AND state="stopped",1,0)&lt;BR /&gt;| eventstats values(is_s1_stopped) as is_s1_stopped by host&lt;BR /&gt;| where NOT is_s1_stopped=1&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 May 2022 13:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598089#M208270</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-17T13:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598094#M208272</link>
      <description>&lt;P&gt;Actually, I tried both: the way you corrected, this time it did almost nothing - the same initial result (filtering didn't work at all);&amp;nbsp;also renamed it as a different field name (thought last where should check the is_s1_stopped field, but none of them works &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 14:10:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598094#M208272</guid>
      <dc:creator>ahadalioglu</dc:creator>
      <dc:date>2022-05-17T14:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598095#M208273</link>
      <description>&lt;P&gt;Try something like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Your current search giving fields host, service, state
| eventstats dc(service) as serviceCount sum(eval(if(service="s1" AND state="stopped",1,0))) as s1_stopped by host
| where NOT (serviceCount &amp;gt; 1 AND s1_stopped&amp;gt;0)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 May 2022 14:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598095#M208273</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-05-17T14:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598107#M208277</link>
      <description>&lt;P&gt;Another simple mistake &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The last command should not be "where" but "search". Where needs a bit different syntax (it could probably be written using "where" but it's way easier switching to search).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 15:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598107#M208277</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2022-05-17T15:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598360#M208362</link>
      <description>&lt;P&gt;Huge thanks, it worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please kindly explain the combination that starts with sum() ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks to others as well, you taught me some other stuff too, really appreciate it!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 17:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598360#M208362</guid>
      <dc:creator>ahadalioglu</dc:creator>
      <dc:date>2022-05-18T17:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to filter out records if they match multiple criteria?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598378#M208370</link>
      <description>&lt;PRE&gt;sum(eval(if(service="s1" AND state="stopped",1,0)))&lt;/PRE&gt;&lt;P&gt;For every host, check if the service name is s1 and state is stopped (on the same row), then add 1, otherwise add 0 for all other rows. So after running stats for all rows for a host, if sum (or the field s1_stopped)&amp;gt;0 which means that host has service s1 with state=stopped. Other filter serviceCount &amp;gt;1 means that to only filter when there are more than one service for that host.&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 19:43:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598378#M208370</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-05-18T19:43:24Z</dc:date>
    </item>
    <item>
      <title>CyberArk Splunk Report Issue</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598525#M208414</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It could be very helpful to give advice for this issue.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The daily Splunk report containing the list of failed logon attempts to Password Vault does not contain any results. This has been a blank report for awhile now. I usually review the vault italog for the information, but would like to see how to get the daily report fixed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 15:08:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-out-records-if-they-match-multiple-criteria/m-p/598525#M208414</guid>
      <dc:creator>ismayilahmadov</dc:creator>
      <dc:date>2022-05-19T15:08:04Z</dc:date>
    </item>
  </channel>
</rss>

