<?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: Join two search with event count in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610552#M14182</link>
    <description>&lt;P&gt;Individual search work, but not combined. When I combined only the first one of the event pops up(first part of search), not the second.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 23 Aug 2022 20:02:41 GMT</pubDate>
    <dc:creator>Vasu1</dc:creator>
    <dc:date>2022-08-23T20:02:41Z</dc:date>
    <item>
      <title>How to join two search with event count?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610449#M14177</link>
      <description>&lt;P&gt;I want to create an alert if any of the files are missing, a description printout for that. But this search only gives me one event although it should give me two. In a nutshell, the second part after append is not working. Individual search work.&amp;nbsp; Please guide. It would be greatly appreciated.&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;index = axway abc@gmail.com *INCL* | stats count by host | where count = 0
| eval description="File1 INCL Missing"
|table description | append [search index = axway abc@gmail.com *POD* | stats count | where count = 0
| eval description="File2 POD Missing"
|table description]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 23:08:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610449#M14177</guid>
      <dc:creator>Vasu1</dc:creator>
      <dc:date>2022-08-23T23:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Join two search with event count</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610455#M14178</link>
      <description>&lt;P&gt;Your search makes no sense, you cannot do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = axway abc@gmail.com *INCL* 
| stats count by host 
| where count = 0 &lt;/LI-CODE&gt;&lt;P&gt;as this will always give you 0 results. Think about it - if you have 100 events for 2 hosts A and B then count by host will give you a count for hosts A and B. It can never give you a count for host C which has no data, so you can never get 0 for host C&lt;/P&gt;&lt;P&gt;If you are trying to find out if, for hosts A, B and C whether there is an event, then you need to have all your expected hosts in a lookup file and do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = axway abc@gmail.com *INCL* 
| stats count by host 
| inputlookup append=t my_list_of_hosts
| stats values(count) as count by host
| fillnull count value=0
| where count = 0 
| eval description="File1 INCL Missing" 
| table description &lt;/LI-CODE&gt;&lt;P&gt;this will prove the negative for the first check. Then you can do this for the second one - but you could also combine this to a single search if the hosts are the same.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 07:17:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610455#M14178</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-08-23T07:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Join two search with event count</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610547#M14180</link>
      <description>&lt;LI-CODE lang="markup"&gt;index = axway abc@gmail.com *INCL* | stats count | where count = 0
| eval description="File1 INCL Missing"
|table description | append [search index = axway abc@gmail.com *POD* | stats count | where count = 0
| eval description="File2 POD Missing"
|table description]&lt;/LI-CODE&gt;&lt;P&gt;Very much appreciate your reply. It should not be counted by the host. I apologize for that. Above is the search I am trying to search. All I am trying to do is combine search to alert us if any of the POD and INCL file is missing, and print the description for that search.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 19:33:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610547#M14180</guid>
      <dc:creator>Vasu1</dc:creator>
      <dc:date>2022-08-23T19:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Join two search with event count</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610550#M14181</link>
      <description>&lt;P&gt;Above search should be working. Is it not working for you?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 20:00:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610550#M14181</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-08-23T20:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Join two search with event count</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610552#M14182</link>
      <description>&lt;P&gt;Individual search work, but not combined. When I combined only the first one of the event pops up(first part of search), not the second.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 20:02:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610552#M14182</guid>
      <dc:creator>Vasu1</dc:creator>
      <dc:date>2022-08-23T20:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Join two search with event count</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610554#M14183</link>
      <description>&lt;P&gt;It is working for me as is (Splunk v8.2.4)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2022-08-23 at 4.04.02 PM.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21149iEE9ED16EF000179F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2022-08-23 at 4.04.02 PM.png" alt="Screen Shot 2022-08-23 at 4.04.02 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 20:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610554#M14183</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-08-23T20:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Join two search with event count</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610566#M14184</link>
      <description>&lt;P&gt;Odd, it should work. If you run this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index = axway abc@gmail.com *INCL* 
| stats count 
| eval description="File1 INCL Missing"
| append [
  search index = axway abc@gmail.com *POD* 
  | stats count 
  | eval description="File2 POD Missing"
]&lt;/LI-CODE&gt;&lt;P&gt;does it show you both rows with the count of results for each?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Aug 2022 22:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/610566#M14184</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-08-23T22:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to join two search with event count?</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/611168#M14193</link>
      <description>&lt;P&gt;I need to add another part before this search to make it work, but it works the way I want. Thanks for the response guys.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 16:34:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-join-two-search-with-event-count/m-p/611168#M14193</guid>
      <dc:creator>Vasu1</dc:creator>
      <dc:date>2022-08-29T16:34:37Z</dc:date>
    </item>
  </channel>
</rss>

