Getting Rule utilization data in nested hierarchy of device groups #486
Unanswered
wrgeorge1983
asked this question in
Q&A
Replies: 2 comments
-
It will be helpful if someone form the team answers this. I am also having the same query |
Beta Was this translation helpful? Give feedback.
0 replies
-
HELLO,
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've banged my head against this for a while now, and simply not been able to figure out how to rule hitcount data.
Given a device group hierarchy as shown:
with 2 firewalls (HA pair) assigned to Site A, and a different set assigned to Site B, etc
with rules defined like this:
I want to collect information about rule hitcount, appID statistics, etc for Rules both at the global level, as well as for individual sites. The goal is to report on and answer questions such as:
Rule 4 is unused at any site
Rule 10 is used heavily (with actual numbers) with detected AppIDs x, y, z across all sites, accounting for 7% of all traffic
Rule 8 accounts for 40% of traffic at SiteA, but only 5% of traffic at SiteB
Rule 160 (which is only present at SiteB) accounts for all the other 88% of traffic not covered by rules 10 and 8, and these are the AppIDs detected....
stuff like that.
All this information IS available in Panorama via GUI, but only with lots of repetitive clicking and manual data collection so I'm seeking to automate it. So far I have been able to walk the Device Group hierarchy and show defined rules at each level, but haven't been able to get hitcount or AppID information.
I know the HitCount and RulebaseHitCount objects exist, but can't figure out how to get any actual data in them.
For example this is the real usage data for a specific rule viewed in Panorama in the Branches Device Group:
doing this to pick out that same rule and (I think) populate the hitcount information:
gets me the hitcount object that looks like this:
and the security rule itself looks like:
So far I've tried many different variations of this, but haven't been able to pull any actual hitcount values. Any idea what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions