<?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: Cortex XSIAM XQL: How to find incidents where playbook failed / errored? in Cortex XSIAM Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/cortex-xsiam-xql-how-to-find-incidents-where-playbook-failed/m-p/1247870#M321</link>
    <description>&lt;P&gt;Hello &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1363442865"&gt;@R_BhlpMe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;STRONG&gt;Cortex XSIAM&lt;/STRONG&gt;, playbook execution details such as failure reasons and error messages are &lt;STRONG&gt;not stored directly in the incidents dataset&lt;/STRONG&gt;. Instead, this information is captured in the &lt;STRONG&gt;management_auditing&lt;/STRONG&gt; dataset, which tracks automation and system events, or within the &lt;STRONG&gt;alerts&lt;/STRONG&gt; dataset for alert-level playbook execution status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To retrieve both &lt;STRONG&gt;playbook failure details&lt;/STRONG&gt; and &lt;STRONG&gt;incident context&lt;/STRONG&gt;, you must perform a &lt;STRONG&gt;join&lt;/STRONG&gt; between the &lt;CODE&gt;management_auditing&lt;/CODE&gt; dataset (playbook execution details) and the &lt;CODE&gt;incidents&lt;/CODE&gt; dataset (incident metadata such as incident name).&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;XQL Query for Playbook Failures and Errors&lt;/H4&gt;
&lt;P&gt;The following query filters for automation events that did not complete successfully and joins them with the incidents dataset to provide full context:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = management_auditing 
| filter subtype = "MANAGEMENT_AUDIT_CORTEX_AUTOMATION" 
| filter result != "SUCCESS" 
| join type = inner (dataset = incidents) as inc inc.incident_id = incident_id 
| fields incident_id, inc.name as incident_name, result as status, description as playbook_name, error_message
| sort desc _time
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Alternative: Tracking via the Alerts Dataset&lt;/H4&gt;
&lt;P&gt;If you only need the &lt;STRONG&gt;playbook status and name&lt;/STRONG&gt; for playbooks triggered by specific alerts, you can query the &lt;CODE&gt;alerts&lt;/CODE&gt; dataset. Note that this dataset typically does &lt;STRONG&gt;not&lt;/STRONG&gt; include the detailed &lt;CODE&gt;error_message&lt;/CODE&gt; field found in audit logs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = alerts 
| filter playbook_run_status != null and playbook_run_status != "Success"
| join type = inner (dataset = incidents) as inc inc.incident_id = incident_id 
| fields incident_id, inc.name as incident_name, playbook_run_status, playbook as playbook_name, _time
| sort desc _time
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;H4&gt;Key Field Descriptions&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;management_auditing dataset:&lt;/STRONG&gt;&lt;BR /&gt;Used for troubleshooting and metrics. Filter on&lt;BR /&gt;&lt;CODE&gt;subtype = "MANAGEMENT_AUDIT_CORTEX_AUTOMATION"&lt;/CODE&gt; to isolate playbook execution events.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;result:&lt;/STRONG&gt;&lt;BR /&gt;Indicates the execution outcome (for example, Error, Failed, Partial Success).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;error_message:&lt;/STRONG&gt;&lt;BR /&gt;Provides the failure reason or technical error returned by the automation engine.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;description:&lt;/STRONG&gt;&lt;BR /&gt;Commonly contains the name of the playbook that was executed.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;incidents dataset:&lt;/STRONG&gt;&lt;BR /&gt;Stores core incident metadata such as &lt;CODE&gt;incident_id&lt;/CODE&gt; and &lt;CODE&gt;name&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Dataset Naming Note&lt;/H4&gt;
&lt;P&gt;In newer versions of XSIAM (3.x and later), the &lt;STRONG&gt;incidents&lt;/STRONG&gt; dataset may be referred to as &lt;STRONG&gt;cases&lt;/STRONG&gt;, and &lt;STRONG&gt;alerts&lt;/STRONG&gt; may be referred to as &lt;STRONG&gt;issues&lt;/STRONG&gt;.&lt;BR /&gt;If the queries above return no results, try the following substitutions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Replace &lt;CODE&gt;dataset = incidents&lt;/CODE&gt; with &lt;CODE&gt;dataset = cases&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Replace &lt;CODE&gt;incident_id&lt;/CODE&gt; with &lt;CODE&gt;case_id&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Troubleshooting Common Failures&lt;/H4&gt;
&lt;P&gt;If you encounter errors such as &lt;STRONG&gt;“Failed to start query”&lt;/STRONG&gt; when running these XQL queries from a playbook, ensure that your &lt;STRONG&gt;Core Content Pack&lt;/STRONG&gt; is updated to &lt;STRONG&gt;version 3.4.38 or later&lt;/STRONG&gt;, as earlier versions had known XQL execution stability issues in automation workflows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Feb 2026 13:44:20 GMT</pubDate>
    <dc:creator>susekar</dc:creator>
    <dc:date>2026-02-10T13:44:20Z</dc:date>
    <item>
      <title>Cortex XSIAM XQL: How to find incidents where playbook failed / errored?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/cortex-xsiam-xql-how-to-find-incidents-where-playbook-failed/m-p/1245925#M304</link>
      <description>&lt;P data-start="175" data-end="291"&gt;I’m new to Cortex XSIAM and XQL, and I’m still learning how things work. I need some help with an XQL query.&lt;/P&gt;
&lt;P data-start="293" data-end="347"&gt;I’m trying to create an XQL query where I can see: Incident ID, Incident name , Playbook execution status (failed / error), Playbook name, Error message or failure reason (if available).&lt;/P&gt;
&lt;P data-start="293" data-end="347"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="293" data-end="347"&gt;I checked the incidents dataset, but I couldn’t find a clear field related to playbook status or errors.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 16:36:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/cortex-xsiam-xql-how-to-find-incidents-where-playbook-failed/m-p/1245925#M304</guid>
      <dc:creator>R_BhlpMe</dc:creator>
      <dc:date>2026-01-19T16:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XSIAM XQL: How to find incidents where playbook failed / errored?</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/cortex-xsiam-xql-how-to-find-incidents-where-playbook-failed/m-p/1247870#M321</link>
      <description>&lt;P&gt;Hello &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1363442865"&gt;@R_BhlpMe&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In &lt;STRONG&gt;Cortex XSIAM&lt;/STRONG&gt;, playbook execution details such as failure reasons and error messages are &lt;STRONG&gt;not stored directly in the incidents dataset&lt;/STRONG&gt;. Instead, this information is captured in the &lt;STRONG&gt;management_auditing&lt;/STRONG&gt; dataset, which tracks automation and system events, or within the &lt;STRONG&gt;alerts&lt;/STRONG&gt; dataset for alert-level playbook execution status.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To retrieve both &lt;STRONG&gt;playbook failure details&lt;/STRONG&gt; and &lt;STRONG&gt;incident context&lt;/STRONG&gt;, you must perform a &lt;STRONG&gt;join&lt;/STRONG&gt; between the &lt;CODE&gt;management_auditing&lt;/CODE&gt; dataset (playbook execution details) and the &lt;CODE&gt;incidents&lt;/CODE&gt; dataset (incident metadata such as incident name).&lt;/P&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;XQL Query for Playbook Failures and Errors&lt;/H4&gt;
&lt;P&gt;The following query filters for automation events that did not complete successfully and joins them with the incidents dataset to provide full context:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = management_auditing 
| filter subtype = "MANAGEMENT_AUDIT_CORTEX_AUTOMATION" 
| filter result != "SUCCESS" 
| join type = inner (dataset = incidents) as inc inc.incident_id = incident_id 
| fields incident_id, inc.name as incident_name, result as status, description as playbook_name, error_message
| sort desc _time
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Alternative: Tracking via the Alerts Dataset&lt;/H4&gt;
&lt;P&gt;If you only need the &lt;STRONG&gt;playbook status and name&lt;/STRONG&gt; for playbooks triggered by specific alerts, you can query the &lt;CODE&gt;alerts&lt;/CODE&gt; dataset. Note that this dataset typically does &lt;STRONG&gt;not&lt;/STRONG&gt; include the detailed &lt;CODE&gt;error_message&lt;/CODE&gt; field found in audit logs.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="language-xql"&gt;dataset = alerts 
| filter playbook_run_status != null and playbook_run_status != "Success"
| join type = inner (dataset = incidents) as inc inc.incident_id = incident_id 
| fields incident_id, inc.name as incident_name, playbook_run_status, playbook as playbook_name, _time
| sort desc _time
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;
&lt;H4&gt;Key Field Descriptions&lt;/H4&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;management_auditing dataset:&lt;/STRONG&gt;&lt;BR /&gt;Used for troubleshooting and metrics. Filter on&lt;BR /&gt;&lt;CODE&gt;subtype = "MANAGEMENT_AUDIT_CORTEX_AUTOMATION"&lt;/CODE&gt; to isolate playbook execution events.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;result:&lt;/STRONG&gt;&lt;BR /&gt;Indicates the execution outcome (for example, Error, Failed, Partial Success).&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;error_message:&lt;/STRONG&gt;&lt;BR /&gt;Provides the failure reason or technical error returned by the automation engine.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;description:&lt;/STRONG&gt;&lt;BR /&gt;Commonly contains the name of the playbook that was executed.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;incidents dataset:&lt;/STRONG&gt;&lt;BR /&gt;Stores core incident metadata such as &lt;CODE&gt;incident_id&lt;/CODE&gt; and &lt;CODE&gt;name&lt;/CODE&gt;.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Dataset Naming Note&lt;/H4&gt;
&lt;P&gt;In newer versions of XSIAM (3.x and later), the &lt;STRONG&gt;incidents&lt;/STRONG&gt; dataset may be referred to as &lt;STRONG&gt;cases&lt;/STRONG&gt;, and &lt;STRONG&gt;alerts&lt;/STRONG&gt; may be referred to as &lt;STRONG&gt;issues&lt;/STRONG&gt;.&lt;BR /&gt;If the queries above return no results, try the following substitutions:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;Replace &lt;CODE&gt;dataset = incidents&lt;/CODE&gt; with &lt;CODE&gt;dataset = cases&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Replace &lt;CODE&gt;incident_id&lt;/CODE&gt; with &lt;CODE&gt;case_id&lt;/CODE&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;H4&gt;&amp;nbsp;&lt;/H4&gt;
&lt;H4&gt;Troubleshooting Common Failures&lt;/H4&gt;
&lt;P&gt;If you encounter errors such as &lt;STRONG&gt;“Failed to start query”&lt;/STRONG&gt; when running these XQL queries from a playbook, ensure that your &lt;STRONG&gt;Core Content Pack&lt;/STRONG&gt; is updated to &lt;STRONG&gt;version 3.4.38 or later&lt;/STRONG&gt;, as earlier versions had known XQL execution stability issues in automation workflows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 13:44:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/cortex-xsiam-xql-how-to-find-incidents-where-playbook-failed/m-p/1247870#M321</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-02-10T13:44:20Z</dc:date>
    </item>
  </channel>
</rss>

