<?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: Create widget for bioc and ioc rule numbers in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/create-widget-for-bioc-and-ioc-rule-numbers/m-p/554488#M2531</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/296836"&gt;@ZuleyhaAy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, there is no OOTB command to get the rules. However, you can make use of&amp;nbsp;xdr-get-audit-management-logs command. If you are heavily creating rules, please check the commands limitation for example for limit parameter, it says "&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;limit&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Maximum number of audit logs to return per page. The default and maximum is 30." I am pasting here a sample script which could get the number of created BIOC rules and if you want to develop something else please use the below resources.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;LI-CODE lang="python"&gt;res = demisto.executeCommand("xdr-get-audit-management-logs", {"type": "Rules", "sub_type":"CREATE"})
count = 0
for rule in res[0]["Contents"]:
    if 'BIOC created' in rule['AUDIT_DESCRIPTION']:
        count += 1
demisto.results(count)&lt;/LI-CODE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gyldz_0-1692613497009.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/52951i60220F64F5BE949A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gyldz_0-1692613497009.png" alt="gyldz_0-1692613497009.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SPAN&gt;&lt;BR /&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.5/Cortex-XSOAR-Administrator-Guide/Script-Based-Widgets-Using-Automation-Scripts-Examples" target="_blank" rel="noopener"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.5/Cortex-XSOAR-Administrator-Guide/Script-Based-Widgets-Using-Automation-Scripts-Examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this answers your question.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 21 Aug 2023 10:25:08 GMT</pubDate>
    <dc:creator>gyldz</dc:creator>
    <dc:date>2023-08-21T10:25:08Z</dc:date>
    <item>
      <title>Create widget for bioc and ioc rule numbers</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/create-widget-for-bioc-and-ioc-rule-numbers/m-p/552924#M2484</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to get numbers of bioc and ioc rules from our xdr integration. I want to create a widget to see that how many ioc and bioc rules added week by week. Do anyone have idea for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-PRODUCT title="Cortex XDR" id="Cortex_XDR"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Cortex XSOAR" id="Cortex_XSOAR"&gt;&lt;/LI-PRODUCT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2023 12:13:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/create-widget-for-bioc-and-ioc-rule-numbers/m-p/552924#M2484</guid>
      <dc:creator>ZuleyhaAy</dc:creator>
      <dc:date>2023-08-08T12:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Create widget for bioc and ioc rule numbers</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/create-widget-for-bioc-and-ioc-rule-numbers/m-p/554488#M2531</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/296836"&gt;@ZuleyhaAy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, there is no OOTB command to get the rules. However, you can make use of&amp;nbsp;xdr-get-audit-management-logs command. If you are heavily creating rules, please check the commands limitation for example for limit parameter, it says "&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;limit&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Maximum number of audit logs to return per page. The default and maximum is 30." I am pasting here a sample script which could get the number of created BIOC rules and if you want to develop something else please use the below resources.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;LI-CODE lang="python"&gt;res = demisto.executeCommand("xdr-get-audit-management-logs", {"type": "Rules", "sub_type":"CREATE"})
count = 0
for rule in res[0]["Contents"]:
    if 'BIOC created' in rule['AUDIT_DESCRIPTION']:
        count += 1
demisto.results(count)&lt;/LI-CODE&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gyldz_0-1692613497009.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/52951i60220F64F5BE949A/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="gyldz_0-1692613497009.png" alt="gyldz_0-1692613497009.png" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;SPAN&gt;&lt;BR /&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.5/Cortex-XSOAR-Administrator-Guide/Script-Based-Widgets-Using-Automation-Scripts-Examples" target="_blank" rel="noopener"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSOAR/6.5/Cortex-XSOAR-Administrator-Guide/Script-Based-Widgets-Using-Automation-Scripts-Examples&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I hope this answers your question.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Aug 2023 10:25:08 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/create-widget-for-bioc-and-ioc-rule-numbers/m-p/554488#M2531</guid>
      <dc:creator>gyldz</dc:creator>
      <dc:date>2023-08-21T10:25:08Z</dc:date>
    </item>
  </channel>
</rss>

