<?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: Alert when both devices in HA pair stop reporting in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336345#M10948</link>
    <description>&lt;P&gt;is there anything in your lookup that identifies which servers are part of the HA pair?  maybe another column that identifies the HA IP for example?  &lt;/P&gt;

&lt;P&gt;If so, then you might be able to just worry about the latest event from that vip.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=infoblox 
| lookup infoblox_hosts.csv host_ip as host OUTPUT host_ip as host, server_name as server, ha_ip as vip
| search host=*
| eventstats max(lastTime) as vip_lastTime by vip
| where vip_lastTime &amp;lt; (now() - 86400)
| convert ctime(vip_lastTime) as LastTimeLogged
| table host,server LastTimeLogged
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 27 Jan 2018 01:14:21 GMT</pubDate>
    <dc:creator>maciep</dc:creator>
    <dc:date>2018-01-27T01:14:21Z</dc:date>
    <item>
      <title>Alert when both devices in HA pair stop reporting</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336344#M10947</link>
      <description>&lt;P&gt;I currently have an alert setup to send email when one of our infoblox servers stops sending logs based on metadata of the index and a csv lookup for hosts.  This works well but the issue I am running into is that some of the devices are in an HA pair so I am constantly getting emails for the backup device not reporting.  Below is my current search,&lt;/P&gt;

&lt;P&gt;| metadata type=hosts index=infoblox &lt;BR /&gt;
| lookup infoblox_hosts.csv host_ip as host OUTPUT host_ip as host, server_name as server&lt;BR /&gt;
| search host=*&lt;BR /&gt;
| where lastTime &amp;lt; (now() - 86400)&lt;BR /&gt;
| convert ctime(lastTime) as LastTimeLogged&lt;BR /&gt;
| table host,server LastTimeLogged&lt;BR /&gt;
| sort LastTimeLogged&lt;/P&gt;

&lt;P&gt;Can someone point me in the right direction to setup a condition to alert when both server1 and server2 have stopped reporting otherwise do nothing? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336344#M10947</guid>
      <dc:creator>gstefancyk</dc:creator>
      <dc:date>2020-09-29T17:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when both devices in HA pair stop reporting</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336345#M10948</link>
      <description>&lt;P&gt;is there anything in your lookup that identifies which servers are part of the HA pair?  maybe another column that identifies the HA IP for example?  &lt;/P&gt;

&lt;P&gt;If so, then you might be able to just worry about the latest event from that vip.  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=hosts index=infoblox 
| lookup infoblox_hosts.csv host_ip as host OUTPUT host_ip as host, server_name as server, ha_ip as vip
| search host=*
| eventstats max(lastTime) as vip_lastTime by vip
| where vip_lastTime &amp;lt; (now() - 86400)
| convert ctime(vip_lastTime) as LastTimeLogged
| table host,server LastTimeLogged
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Jan 2018 01:14:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336345#M10948</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2018-01-27T01:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when both devices in HA pair stop reporting</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336346#M10949</link>
      <description>&lt;P&gt;Thanks for the suggestion, I will give this a try and see happens. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 12:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336346#M10949</guid>
      <dc:creator>gstefancyk</dc:creator>
      <dc:date>2018-01-31T12:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alert when both devices in HA pair stop reporting</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336347#M10950</link>
      <description>&lt;P&gt;Thanks maciep, works as expected after adding 3rd column to my lookup table. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 15:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-when-both-devices-in-HA-pair-stop-reporting/m-p/336347#M10950</guid>
      <dc:creator>gstefancyk</dc:creator>
      <dc:date>2018-01-31T15:36:01Z</dc:date>
    </item>
  </channel>
</rss>

