<?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 trigger an alert when no data from hosts? in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618803#M14341</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;, thank for the info, as per the link provided without lookup file we cannot see the host data with 0 count. i got it.&lt;BR /&gt;but now my requirement is how can i create an alert when no data coming from any one of the hosts.&lt;BR /&gt;i created a below query for that, please let me know if this is correct&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=advcf   request=*  host IN(abgc, efgh, jhty, hjyu,kjnb)
|stats count
|where count=0&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 21:43:25 GMT</pubDate>
    <dc:creator>Ash1</dc:creator>
    <dc:date>2022-10-28T21:43:25Z</dc:date>
    <item>
      <title>How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618778#M14338</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;i have below query&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=advcf   request=*  host=abgc    host=efgh     host=jhty    host=hjyu     host=kjnbh&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;here i want the email alert to trigger when data is not coming from any one of the hosts.&lt;BR /&gt;and i want to see that host name in a table format in the mail.&lt;BR /&gt;&lt;BR /&gt;how can i do that????&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 18:36:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618778#M14338</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-28T18:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618798#M14340</link>
      <description>&lt;P&gt;Finding something that is not there is not Splunk's strong suit.&amp;nbsp; See this blog entry for a good write-up on it.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.duanewaddle.com/proving-a-negative/" target="_blank"&gt;https://www.duanewaddle.com/proving-a-negative/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 20:18:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618798#M14340</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-28T20:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618803#M14341</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;, thank for the info, as per the link provided without lookup file we cannot see the host data with 0 count. i got it.&lt;BR /&gt;but now my requirement is how can i create an alert when no data coming from any one of the hosts.&lt;BR /&gt;i created a below query for that, please let me know if this is correct&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=advcf   request=*  host IN(abgc, efgh, jhty, hjyu,kjnb)
|stats count
|where count=0&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 21:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618803#M14341</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-28T21:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618806#M14342</link>
      <description>&lt;P&gt;Just append some dummy records for each host and assign an event count of 0 to it. Instead of count, use sum to add up the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=advcf request=* host IN(abgc, efgh, jhty, hjyu,kjnb)
| eval event_ct=1
| append [| makeresults 
    | eval host="abgc, efgh, jhty, hjyu, kjnb"
    | rex field=host mode=sed "s/\s+//g"
    | eval host=split(host,",")
    | mvexpand host
    | eval event_ct=0
    ]
| stats sum(event_ct) AS event_ct BY host
| where event_ct=0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 23:09:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618806#M14342</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2022-10-28T23:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618821#M14344</link>
      <description>&lt;P&gt;I tried to use the below query but getting below error:&lt;/P&gt;&lt;P&gt;Error in 'search operator:rex': usage:regex[field=&amp;lt;field&amp;gt;]&amp;lt;regex&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 16:35:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618821#M14344</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-29T16:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618822#M14345</link>
      <description>&lt;P&gt;That query will trigger an alert only if there are no results from all hosts.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 16:47:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618822#M14345</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-29T16:47:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618823#M14346</link>
      <description>&lt;P&gt;Please share the query that produced the error message.&amp;nbsp; Is that the complete error text?&amp;nbsp; It appears to be incomplete and incorrect.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 16:49:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618823#M14346</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-29T16:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618824#M14347</link>
      <description>&lt;P&gt;but i want the alert to be triggered when data is not coming from 1 host as well...&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 17:20:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618824#M14347</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-29T17:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618825#M14348</link>
      <description>&lt;P&gt;I used the same query given the only change in the original query is host and index name change, and the error i posted is the complete error.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 17:21:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618825#M14348</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-29T17:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618826#M14349</link>
      <description>&lt;P&gt;my requirement is just i need to trigger an alert when data is not coming from any hosts.&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 17:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618826#M14349</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-29T17:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618827#M14350</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp;as u said the query i gave will trigger an alert only when data is not available in all 5 hosts.&lt;BR /&gt;but i want the alert to be triggered even when data not there in 1 host as well&lt;BR /&gt;can u please tune this query&lt;/P&gt;&lt;PRE&gt;index=advcf   request=*  host IN(abgc, efgh, jhty, hjyu,kjnb)
|stats count
|where count=0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Oct 2022 17:24:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618827#M14350</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-29T17:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618829#M14351</link>
      <description>&lt;P&gt;Have you tried the query suggested by&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;?&amp;nbsp; It looks good to me.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 00:35:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618829#M14351</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-30T00:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618841#M14352</link>
      <description>&lt;P&gt;I tried to use the query but getting below error:&lt;/P&gt;&lt;P&gt;Error in 'search operator:rex': usage:regex[field=&amp;lt;field&amp;gt;]&amp;lt;regex&amp;gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 13:04:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618841#M14352</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-30T13:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618843#M14353</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp; The exact query, without changes, works fine for me.&amp;nbsp; Please post the exact query you used.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 13:42:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618843#M14353</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-30T13:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to trigger an alert when no data from hosts?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618848#M14354</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; they was a typo error in my original query, i noticed that, now the given query is working fine.&lt;BR /&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/213957"&gt;@richgalloway&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp; for making this done.&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;BR /&gt;i accept this as a solution&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Oct 2022 18:28:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/How-to-trigger-an-alert-when-no-data-from-hosts/m-p/618848#M14354</guid>
      <dc:creator>Ash1</dc:creator>
      <dc:date>2022-10-30T18:28:18Z</dc:date>
    </item>
  </channel>
</rss>

