<?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 Help - XQL Query for Unprotected assets in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1234897#M8599</link>
    <description>&lt;P&gt;Hi, everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a use case of creating a Correlation rule to track the asset where the operational status of the agent changed from "Protected" to "Unprotected". I am having a hard time building the actual query. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im currently only tracking asset under "Unprotected" but that generates a lot of noise as any new deployment the initial status of the agent will be "Unprotected" therefore the alert will trigger. So this is not accurate at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = endpoints | filter endpoint_status = ENUM.CONNECTED and operational_status = "UNPROTECTED"&lt;BR /&gt;| dedup endpoint_id&lt;BR /&gt;| fields endpoint_id , endpoint_name , endpoint_type, endpoint_status, operational_status, operational_status_description, operating_system, ip_address, tags&lt;/P&gt;</description>
    <pubDate>Tue, 29 Jul 2025 15:02:36 GMT</pubDate>
    <dc:creator>BOtero1</dc:creator>
    <dc:date>2025-07-29T15:02:36Z</dc:date>
    <item>
      <title>Help - XQL Query for Unprotected assets</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1234897#M8599</link>
      <description>&lt;P&gt;Hi, everyone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a use case of creating a Correlation rule to track the asset where the operational status of the agent changed from "Protected" to "Unprotected". I am having a hard time building the actual query. Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Im currently only tracking asset under "Unprotected" but that generates a lot of noise as any new deployment the initial status of the agent will be "Unprotected" therefore the alert will trigger. So this is not accurate at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current query:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;dataset = endpoints | filter endpoint_status = ENUM.CONNECTED and operational_status = "UNPROTECTED"&lt;BR /&gt;| dedup endpoint_id&lt;BR /&gt;| fields endpoint_id , endpoint_name , endpoint_type, endpoint_status, operational_status, operational_status_description, operating_system, ip_address, tags&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jul 2025 15:02:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1234897#M8599</guid>
      <dc:creator>BOtero1</dc:creator>
      <dc:date>2025-07-29T15:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help - XQL Query for Unprotected assets</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1234987#M8603</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;You could probably just filter out newly installed agents.&lt;/P&gt;
&lt;P&gt;| alter install_date_difference = timestamp_diff(current_time(), install_date, "DAY") // calculate the amount of days since the XDR agent was installed. &lt;BR /&gt;| filter install_date_difference &amp;gt; 1 // Set/filter the amount of days when the correlation rule should trigger. In this example the agent needs to be installed for 2 days and more&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;timestamp_diff would also support the difference in hours.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 06:28:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1234987#M8603</guid>
      <dc:creator>micomi</dc:creator>
      <dc:date>2025-07-30T06:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help - XQL Query for Unprotected assets</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1235048#M8604</link>
      <description>&lt;P&gt;Amazing! Thanks! That works like a charm.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 18:09:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/help-xql-query-for-unprotected-assets/m-p/1235048#M8604</guid>
      <dc:creator>BOtero1</dc:creator>
      <dc:date>2025-07-30T18:09:23Z</dc:date>
    </item>
  </channel>
</rss>

