<?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: Using &amp;quot;GetFailedTasks&amp;quot; with a relative time range of 7 or 30 days lookback in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/using-quot-getfailedtasks-quot-with-a-relative-time-range-of-7/m-p/569759#M2914</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/209373"&gt;@michaelsysec242&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;GetFailedTasks&amp;nbsp;&lt;/STRONG&gt;command takes in as argument a query, which you can edit to include a timeframe of interest. For example, if you'd like to get the failed tasks within the last 7 days, you can edit the query parameter and use:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-status:closed and runStatus:error and incident.created:&amp;gt;="7 days ago"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the Out of the Box playbook "Integrations and Incidents Health Check - Running Scripts", you will need to duplicate it or detach it as it is locked, in order to change the query in the task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Dec 2023 17:59:45 GMT</pubDate>
    <dc:creator>AbelSantamarina</dc:creator>
    <dc:date>2023-12-13T17:59:45Z</dc:date>
    <item>
      <title>Using "GetFailedTasks" with a relative time range of 7 or 30 days lookback</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/using-quot-getfailedtasks-quot-with-a-relative-time-range-of-7/m-p/564064#M2798</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;
&lt;P&gt;I am working with the task 'GetFailedTasks' withing the&amp;nbsp;&lt;SPAN&gt;Integrations &amp;amp; Incidents Health Check playbook. When running this task within this system playbook I am only getting failed tasks from the beginning of the year and this is likely due to the Max_incidents flag for this task. How would I go about adding to the query a relative time-frame of 7 or 30 days so that I can view and analyze only recent failing tasks?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have checked on another XSOAR deployment and the Playbook retrieves only recent incidents. Is this a bug or this is something that can be changed ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Take note, I have upgraded the content pack to the latest versions and can confirm that the playbook remains attached.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Nov 2023 10:04:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/using-quot-getfailedtasks-quot-with-a-relative-time-range-of-7/m-p/564064#M2798</guid>
      <dc:creator>michaelsysec242</dc:creator>
      <dc:date>2023-11-02T10:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Using "GetFailedTasks" with a relative time range of 7 or 30 days lookback</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/using-quot-getfailedtasks-quot-with-a-relative-time-range-of-7/m-p/569759#M2914</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/209373"&gt;@michaelsysec242&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The &lt;STRONG&gt;GetFailedTasks&amp;nbsp;&lt;/STRONG&gt;command takes in as argument a query, which you can edit to include a timeframe of interest. For example, if you'd like to get the failed tasks within the last 7 days, you can edit the query parameter and use:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;-status:closed and runStatus:error and incident.created:&amp;gt;="7 days ago"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using the Out of the Box playbook "Integrations and Incidents Health Check - Running Scripts", you will need to duplicate it or detach it as it is locked, in order to change the query in the task.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 17:59:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/using-quot-getfailedtasks-quot-with-a-relative-time-range-of-7/m-p/569759#M2914</guid>
      <dc:creator>AbelSantamarina</dc:creator>
      <dc:date>2023-12-13T17:59:45Z</dc:date>
    </item>
  </channel>
</rss>

