Recently I stumbled upon this weird behavior where a security rule shows 0 hit-count, but when looked under the traffic monitor lots of traffic is being allowed by that rule.
This is the rule in question (0 hit count marker):
This is the traffic monitor logs, where we can see the rule being used:
Does someone know why the hit count is not incrementing since the rule is being used? how can I troubleshoot this?
Based on the color of the rule from the first picture I would guess you are managing the firewall with Panorama?
Are you seeing the zero hit count on the Panorama or on the firewall itself?
If my guess is correct and you are managing the firewall with Panorama, it seems this rule doesn't have log forwarding profile applied. Without log forwarding, firewall will not send any logs generated for this rule to the Panorama. And without any logs for that rule I am (almost) certain it will not increase the hit count.
Now even without log forwarding, firewall should increase the hit count locally on the firewall. So it is good to clear this out - are you using Panorama and are you seeing the zero hit count on the panorama or on the firewall.
I have a quick update about this issue. It seems that it has something to do with the naming of the rule. I was playing around with the CLI and applied the following command:
So based upon the output, I decided to go to Panorama and reduce the characters of the name on this specific rule. Once done the "new" rule started getting hit counts:
So I decided to revert this change and configure the name back on how it was, but to my surprise the rule is still getting hit counts:
I opened a TAC to check this behavior, maybe it's a bug. Once I get their feedback I'll make sure to update this thread.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!