<?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: Filter on multiple events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613579#M213248</link>
    <description>&lt;P&gt;Yes thank you for your help. This is what i made of it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;..
| stats first(hst) as host by code type
| eventstats c as total by code
| where (type="master")  OR (total=1 and type="host")
| table host code type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 10:28:10 GMT</pubDate>
    <dc:creator>harryvdtol</dc:creator>
    <dc:date>2022-09-19T10:28:10Z</dc:date>
    <item>
      <title>How to filter on multiple events?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613567#M213245</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have a search that outputs table data that looks like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;hst	code	type
hosta	01	master
hosta	02	master
hostb	01	host
hostb	03	host
hostc	02	host
hostd	04	host
hoste	05	master
hoste	06	master
hostf	06	host
hostg	08	host&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;etc.etc...&lt;/P&gt;
&lt;P&gt;I am trying to filter events but i am unable to do.&lt;/P&gt;
&lt;P&gt;My goal is to filter events based on this condition:&lt;BR /&gt;&lt;EM&gt;If the code on a master also exist on the host, then the host rows should be removed&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;So, my desired output should look like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;hst	code	type
hosta	01	master
hosta	02	master
hostb	03	host
hostd	04	host
hoste	05	master
hoste	06	master
hostg	08	host&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope someone can help me.&lt;BR /&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harry&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 15:42:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613567#M213245</guid>
      <dc:creator>harryvdtol</dc:creator>
      <dc:date>2022-09-19T15:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613568#M213246</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241379"&gt;@harryvdtol&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;please try something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search&amp;gt;
| stats first(host) AS host BY code type
| table host code type&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 08:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613568#M213246</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-19T08:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613579#M213248</link>
      <description>&lt;P&gt;Yes thank you for your help. This is what i made of it.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;..
| stats first(hst) as host by code type
| eventstats c as total by code
| where (type="master")  OR (total=1 and type="host")
| table host code type&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 10:28:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613579#M213248</guid>
      <dc:creator>harryvdtol</dc:creator>
      <dc:date>2022-09-19T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter on multiple events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613585#M213250</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241379"&gt;@harryvdtol&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 11:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-filter-on-multiple-events/m-p/613585#M213250</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-19T11:03:44Z</dc:date>
    </item>
  </channel>
</rss>

