<?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 Alert for internet down on site x (disconnected state) in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/alert-for-internet-down-on-site-x-disconnected-state/m-p/547927#M4685</link>
    <description>&lt;P&gt;Hello dear community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have a couple of sites, which sometimes do not have a internet connection, because the provider has issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get an alert, when a boundle of agents is not reachable at the same time (disconnected)?&lt;/P&gt;
&lt;P&gt;I can alert, when one or another is disconnected, but what do I need to change if I wan't to alert, when all of them are disconnected at the same time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
    <pubDate>Sat, 01 Jul 2023 14:15:19 GMT</pubDate>
    <dc:creator>RFeyertag</dc:creator>
    <dc:date>2023-07-01T14:15:19Z</dc:date>
    <item>
      <title>Alert for internet down on site x (disconnected state)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/alert-for-internet-down-on-site-x-disconnected-state/m-p/547927#M4685</link>
      <description>&lt;P&gt;Hello dear community,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have a couple of sites, which sometimes do not have a internet connection, because the provider has issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way to get an alert, when a boundle of agents is not reachable at the same time (disconnected)?&lt;/P&gt;
&lt;P&gt;I can alert, when one or another is disconnected, but what do I need to change if I wan't to alert, when all of them are disconnected at the same time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Rob&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jul 2023 14:15:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/alert-for-internet-down-on-site-x-disconnected-state/m-p/547927#M4685</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2023-07-01T14:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alert for internet down on site x (disconnected state)</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/alert-for-internet-down-on-site-x-disconnected-state/m-p/547966#M4686</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/190671"&gt;@RFeyertag&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for writing to live community!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First things first, you would want to create group names for the endpoints. Then you can actually create an XQL query for those group of endpoints for the site and then you can run the XQL query for it.&amp;nbsp; You can create this as a correlation rule and it should return only one entry with below.&lt;/P&gt;
&lt;P&gt;The reason why we have 30 minutes as a timeline because the agents getting disconnected, show "Disconnected" in XDR only after missing on 2 heartbeats which means 10 minutes of time as minimum threshold and then for the group of endpoints, we would want to give a buffer of 2-3 minutes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;dataset = endpoints
| fields endpoint_status, agent_version, last_seen, endpoint_name, endpoint_type, group_names
| alter ct = current_time()
| alter diff = timestamp_diff(ct, last_seen, "MINUTE")
| filter endpoint_status != CONNECTED and diff  &amp;gt; 30 and group_names contains  "&amp;lt;group name of your choice&amp;gt;"
| comp count(endpoint_name ) as offline
| alter text = if(offline &amp;gt; 30 , 1,0 ) //replace the 30 by any number you want and also the return values as per your choice&lt;/LI-CODE&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;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jul 2023 02:56:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/alert-for-internet-down-on-site-x-disconnected-state/m-p/547966#M4686</guid>
      <dc:creator>neelrohit</dc:creator>
      <dc:date>2023-07-03T02:56:34Z</dc:date>
    </item>
  </channel>
</rss>

