<?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: MX L3 rule hit counts in Network Platform API</title>
    <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454190#M8300</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;or, just flick the allow all any any to deny and see what breaks&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The story of my life. &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt; I actually did look up this subject before I asked again hoping that they had added it to the API and I just couldn't find it. I'd bet you it is there but is expensive to execute so they just don't document it.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Nov 2023 15:16:26 GMT</pubDate>
    <dc:creator>james.betts</dc:creator>
    <dc:date>2023-11-22T15:16:26Z</dc:date>
    <item>
      <title>MX L3 rule hit counts</title>
      <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454185#M8295</link>
      <description>&lt;P&gt;A customer of mine needs to see hit counts on MX rules so that he can eliminate his any-any permit rule after verifying that all legit traffic is covered. We can get a snapshot by looking at the L3 rules with the GUI but we'd like to have several days of data to ensure that we're going to break as few things as possible. getNetworkApplianceFirewallL3FirewallRules tells us what the rules are, but no hit counts. Any suggestions?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 18:51:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454185#M8295</guid>
      <dc:creator>james.betts</dc:creator>
      <dc:date>2023-11-21T18:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: MX L3 rule hit counts</title>
      <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454186#M8296</link>
      <description>&lt;P&gt;I would suggest a Syslog server . And analyse that data&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 19:03:50 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454186#M8296</guid>
      <dc:creator>ww^</dc:creator>
      <dc:date>2023-11-21T19:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: MX L3 rule hit counts</title>
      <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454187#M8297</link>
      <description>&lt;P&gt;Hmmm, when using the dashboard, I believe hits are only recorded while you have the page open.  I have no idea what the returned value would mean from the API in this context.&lt;/P&gt;&lt;P&gt;+1 to &lt;A href="https://community.meraki.com/t5/user/viewprofilepage/user-id/1890"&gt;@jdb1&lt;/A&gt; .  You will need to use syslog for this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 19:16:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454187#M8297</guid>
      <dc:creator>Philip D'Ath</dc:creator>
      <dc:date>2023-11-21T19:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: MX L3 rule hit counts</title>
      <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454188#M8298</link>
      <description>&lt;P&gt;You'll need to indeed use a syslog server and parse the firewall events in it.&lt;BR /&gt;Don't forget to discard the flow_start and flow_end events.&lt;BR /&gt;At the end of the firewall events you have a matching statement that should make it obvious which actual rule it is matching.  The rule number or name is NOT in the log.&lt;BR /&gt;&lt;BR /&gt;Once you have filtered out the events you want you only need a linecount to get your counters.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2023 20:29:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454188#M8298</guid>
      <dc:creator>joey.debra</dc:creator>
      <dc:date>2023-11-21T20:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: MX L3 rule hit counts</title>
      <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454189#M8299</link>
      <description>&lt;P&gt;As previously stated set up a syslog server to view live traffic - kiwi syslog do a free trial license for 30 days.&lt;/P&gt;&lt;P&gt;or, just flick the allow all any any to deny and see what breaks&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 09:23:05 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454189#M8299</guid>
      <dc:creator>MerakiGnome</dc:creator>
      <dc:date>2023-11-22T09:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: MX L3 rule hit counts</title>
      <link>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454190#M8300</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;or, just flick the allow all any any to deny and see what breaks&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;The story of my life. &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt; I actually did look up this subject before I asked again hoping that they had added it to the API and I just couldn't find it. I'd bet you it is there but is expensive to execute so they just don't document it.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Nov 2023 15:16:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-platform-api/mx-l3-rule-hit-counts/m-p/5454190#M8300</guid>
      <dc:creator>james.betts</dc:creator>
      <dc:date>2023-11-22T15:16:26Z</dc:date>
    </item>
  </channel>
</rss>

