<?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: Difference between Queries ?? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Difference-between-Queries/m-p/561300#M12375</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236452"&gt;@Vishal2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case I will suggest this search,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=XmlWinEventLog* (EventCode=41 OR EventCode=1074 OR EventCode=6006 OR EventCode=6008) [| inputlookup Windows.csv | return 1000 host] 
| stats count by host 
| where count &amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if I'm right you will have only those host which has events if you remove "| where count &amp;gt;1" from search.&lt;/P&gt;&lt;P&gt;KV&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Jul 2021 06:45:32 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-07-29T06:45:32Z</dc:date>
    <item>
      <title>Difference between Queries ??</title>
      <link>https://community.splunk.com/t5/Alerting/Difference-between-Queries/m-p/561295#M12351</link>
      <description>&lt;P&gt;I have 2 search Queries to get the windows shutdown list from the lookup file but when&amp;nbsp; I run these 2 Queries I am getting different host list for same time period, Can you please suggest the best Query to get the shutdown hosts from the lookup file.&lt;/P&gt;&lt;P&gt;1. index=* host=* sourcetype=XmlWinEventLog* (EventCode=41 OR EventCode=1074 OR EventCode=6006 OR EventCode=6008) join type=inner host [ |inputlookup Windows.csv ] | stats count by host | dedup host&lt;/P&gt;&lt;P&gt;2. index=*&amp;nbsp;sourcetype=XmlWinEventLog*&amp;nbsp;EventCode=41 OR EventCode=1074 OR EventCode=6006 OR EventCode=6008 [ | inputlookup Windows.csv | return 1000 host] | stats count by host | where count &amp;gt;1&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;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 06:27:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Difference-between-Queries/m-p/561295#M12351</guid>
      <dc:creator>Vishal2</dc:creator>
      <dc:date>2021-07-29T06:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Queries ??</title>
      <link>https://community.splunk.com/t5/Alerting/Difference-between-Queries/m-p/561300#M12375</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236452"&gt;@Vishal2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this case I will suggest this search,&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=* sourcetype=XmlWinEventLog* (EventCode=41 OR EventCode=1074 OR EventCode=6006 OR EventCode=6008) [| inputlookup Windows.csv | return 1000 host] 
| stats count by host 
| where count &amp;gt;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if I'm right you will have only those host which has events if you remove "| where count &amp;gt;1" from search.&lt;/P&gt;&lt;P&gt;KV&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jul 2021 06:45:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Difference-between-Queries/m-p/561300#M12375</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-29T06:45:32Z</dc:date>
    </item>
  </channel>
</rss>

