<?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: Filtering panorama policies by modified date. in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/filtering-panorama-policies-by-modified-date/m-p/561591#M1928</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/217087"&gt;@Mike_VanHaaften&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may check if a rule is disabled using below API call:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api/?key={{key}}&amp;amp;type=config&amp;amp;action=show&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='{{rulename}}']&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The response will have the 'disabled' element set if the rule is disabled.&lt;/P&gt;
&lt;P&gt;Here is a sample output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;action&amp;gt;allow&amp;lt;/action&amp;gt;
&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if you will be able to get the rule 'modified' details, this information is obtained from the config audit logs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 13 Oct 2023 07:53:22 GMT</pubDate>
    <dc:creator>akuzhuppilly</dc:creator>
    <dc:date>2023-10-13T07:53:22Z</dc:date>
    <item>
      <title>Filtering panorama policies by modified date.</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/filtering-panorama-policies-by-modified-date/m-p/560858#M1906</link>
      <description>&lt;P&gt;I'm trying to do some auditing of firewall policies.&amp;nbsp; The organization that I'm working with is wanting an automated way to identify rules that have been disabled for 6 months so they can go in and delete them.&amp;nbsp; The thought I had was to look at the modified date and disabled status to identify the rules - I have seen suggestions about adding this data into the description or a tag, but I'm wanting to make this as light of a lift on the org as possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can make such a filter in the policy optimizer -&amp;nbsp;(rule-modification-timestamp leq '2023-04-06 10:12:32') and (disabled eq 'yes') - , but that rule will not function in the - Security Post rules - section.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not see the ability to look at that data with a custom report - because it is only intended to parse through logs not configs.&amp;nbsp; I have parsed through the Security Post rules section in the api for other auditing and I don't see the Modified date in the XML output.&amp;nbsp; Nor do I see the ability to hit the policy optimizer via the API.&amp;nbsp; Since I want to automatically notify them on a schedule to these issues the API has been where I have historically gone to conduct audits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hoping someone can point me in the right direction to either run a query in the policy optimizer from the api or point me to where I can find the modified date in the api.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2023 17:55:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/filtering-panorama-policies-by-modified-date/m-p/560858#M1906</guid>
      <dc:creator>Mike_VanHaaften</dc:creator>
      <dc:date>2023-10-06T17:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering panorama policies by modified date.</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/filtering-panorama-policies-by-modified-date/m-p/561591#M1928</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/217087"&gt;@Mike_VanHaaften&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may check if a rule is disabled using below API call:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;https://{{host}}/api/?key={{key}}&amp;amp;type=config&amp;amp;action=show&amp;amp;xpath=/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@name='vsys1']/rulebase/security/rules/entry[@name='{{rulename}}']&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The response will have the 'disabled' element set if the rule is disabled.&lt;/P&gt;
&lt;P&gt;Here is a sample output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;action&amp;gt;allow&amp;lt;/action&amp;gt;
&amp;lt;disabled&amp;gt;yes&amp;lt;/disabled&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;/result&amp;gt;
&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure if you will be able to get the rule 'modified' details, this information is obtained from the config audit logs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2023 07:53:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/filtering-panorama-policies-by-modified-date/m-p/561591#M1928</guid>
      <dc:creator>akuzhuppilly</dc:creator>
      <dc:date>2023-10-13T07:53:22Z</dc:date>
    </item>
  </channel>
</rss>

