<?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>article Troubleshoot XDR Agent Degraded Operational Status with XQL in Cortex XDR Articles</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/ta-p/545353</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graphics Created (1).jpg" style="width: 960px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50731iC0788D40D999EDC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Graphics Created (1).jpg" alt="Graphics Created (1).jpg" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;The Operational Status of your XDR Agents is a crucial aspect to monitor to ensure your environment stays protected. The Operational Status &lt;/SPAN&gt;&lt;SPAN&gt;indicates whether the agent is providing protection according to its predefined security policies and profiles. By observing the operational status on the endpoint, you can identify when the agent may suffer from a technical issue or misconfiguration that interferes with the agent’s protection capabilities or interaction with Cortex XDR and other applications. &lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;The XDR agent reports the operational status as follows:&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Protected&lt;/STRONG&gt;&lt;SPAN&gt;—Indicates that the XDR agent is running as configured and did not report any exceptions to Cortex XDR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Partially protected&lt;/STRONG&gt;&lt;SPAN&gt;—Indicates that the XDR agent reported one or more exceptions to Cortex XDR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Unprotected&lt;/STRONG&gt;&lt;SPAN&gt;—Indicates the XDR agent is not enforcing protection on the endpoint&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI style="font-weight: 400;" aria-level="1"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;STRONG&gt;Local Resource Impact&lt;/STRONG&gt;&lt;SPAN&gt;—indicates that the XDR agent machine resources currently available for use, are not enough for the agent to operate smoothly&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;For additional information on each Operation Status, click &lt;/SPAN&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XDR/Cortex-XDR-Pro-Administrator-Guide/Monitor-Agent-Operational-Status" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;here&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Further details regarding a degraded status can be viewed by either navigating to the &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;All Endpoints&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt; table and right-clicking inside the &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;Operational Status&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt; field, then under &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;Endpoint Data&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;, selecting &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;View Operational Status Data, &lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;or via XQL using the &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;Endpoints&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt; dataset and the &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;operational_status_description&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt; field. The XQL query below demonstrates how to leverage this data to gain a more in-depth understanding of what is impacting your agents. The query includes comments describing what each stage/function is doing. You can copy and paste the entire query including the comments into your XQL search box.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;H2&gt;&amp;nbsp;&lt;/H2&gt;
&lt;H2&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;U&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Degraded Agents With Associated Reason&lt;/FONT&gt;&lt;/U&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;U&gt;&lt;/U&gt;&lt;/H2&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//Setting case sensitivity to false for this query.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;config case_sensitive = false&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//defining the data source to run the query against.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;|dataset = endpoints&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//Limiting results to only the necessary fields.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;|fields operational_status_description as osd, endpoint_name, operational_status, operating_system&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//Filtering to only include unprotected or partially protected endpoints in the results.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;|filter operational_status in (UNPROTECTED, PARTIALLY_PROTECTED)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;/*The "arraymap" function applies a specified function to every element of an array. The syntax for this function is to first define the array, then define the function to apply separated by a comma.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;In this example the field "operational_status_description" has been given the alias "osd", so that is how it will be referenced for the duration of this query. The osd field is a string, but is structured like a json array. In order for the arraymap function to work, this field must be converted to an XQL native array. First, the "to_json_string" function is applied to the osd field which returns a json formatted string. Next, the "json_extract_array" function is applied to the output of the to_json_string function, which returns an XQL native array. Now that the input for the arraymap function is in the correct format, the "json_extract_scalar" is defined as the function to apply to every element in the array, using the "@element" syntax to apply the function to the field name "reason". The result is a new field created by the alter stage named "reason" which contains an array of all of the extracted reasons from the osd field.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;*/&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;| alter reason = arraymap (&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;json_extract_array (to_json_string(osd ),"$."),&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;json_extract_scalar ("@element", "$.reason"))&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//Expanding the array to create individual log rows.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;|arrayexpand reason&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//Counting the number of distinct endpoints with a common value in the "reason" field.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;|comp count_distinct(endpoint_name) as Agents by reason&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;//Graph parameters.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;&lt;SPAN&gt;| view graph type = pie header = "Degraded Operational Status" xaxis = reason yaxis = Agents font = "Arial" headerfontsize = 12 legendfontsize = 10&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 08 Jun 2023 20:09:49 GMT</pubDate>
    <dc:creator>bbucao</dc:creator>
    <dc:date>2023-06-08T20:09:49Z</dc:date>
    <item>
      <title>Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/ta-p/545353</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This article will walk through how to access critical data needed to effectively troubleshoot XDR agents that are in a degraded operational state using XQL queries.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Graphics Created (1).jpg" style="width: 960px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/50748iBFBB7EC6B26F16AF/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="Graphics Created (1).jpg" alt="Graphics Created (1).jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 20:09:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/ta-p/545353</guid>
      <dc:creator>bbucao</dc:creator>
      <dc:date>2023-06-08T20:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/549418#M56</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/205598"&gt;@bbucao&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how long does it take, when unprotected status will be shown in the dataset--&amp;gt; endpoints?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since 10 minutes I am waiting for the change.&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>Fri, 14 Jul 2023 20:51:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/549418#M56</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2023-07-14T20:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/549436#M57</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;the endpoints dataset gets updated approximately every 1 hour. The most up to date status can be found in the All Endpoints page in the console&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 06:56:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/549436#M57</guid>
      <dc:creator>sdrake</dc:creator>
      <dc:date>2023-07-15T06:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/550205#M58</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/158713"&gt;@sdrake&lt;/a&gt;! Hope the API gets this informations faster?&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>Thu, 20 Jul 2023 17:49:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/550205#M58</guid>
      <dc:creator>RFeyertag</dc:creator>
      <dc:date>2023-07-20T17:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/550221#M59</link>
      <description>&lt;P&gt;if you use the Get Endpoint resource you can filter on the endpoint_status but then you're using something which doesn't match the OP&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 18:56:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/550221#M59</guid>
      <dc:creator>sdrake</dc:creator>
      <dc:date>2023-07-20T18:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/589640#M81</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/205598"&gt;@bbucao&lt;/a&gt;&amp;nbsp;this information is too relevant! Thank you for sharing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know if there is some updated kb or document with instructions to remediate degraded operational status?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I found this one but the option over the endpoint "Right click &amp;gt; Endpoint Data &amp;gt; View Operational Status Data" isn't shown on my console.&lt;BR /&gt;&lt;A href="https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000004OGWCA2" target="_blank"&gt;https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000004OGWCA2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2024 20:22:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/589640#M81</guid>
      <dc:creator>Silva</dc:creator>
      <dc:date>2024-06-14T20:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Troubleshoot XDR Agent Degraded Operational Status with XQL</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/597006#M82</link>
      <description>&lt;P&gt;How would you make it an interactive graph? Meaning if you click on a link it should take the results of that finding.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 18:09:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-articles/troubleshoot-xdr-agent-degraded-operational-status-with-xql/tac-p/597006#M82</guid>
      <dc:creator>MosR</dc:creator>
      <dc:date>2024-09-05T18:09:36Z</dc:date>
    </item>
  </channel>
</rss>

