Forum Discussion
Ashok_G_263579
Nimbostratus
Aug 08, 2017AFM Active Rules Hit Count
Hello,
Can anyone help me how to fetch the AFM rule hit count from API/tmsh? I see the option present in GUI however in the the api output of fetching rules information, its not present. Could someone help on the same?
- crodriguezRet. Employee
Try the following command:
tmsh show security firewall rule-stat
If you want to show stats for a particular rule, you can grep for the rule name. For example:
tmsh show security firewall rule-stat | grep "my_rule"
- alan_babington_
Nimbostratus
With the REST API you can do mgmt/tm/security/firewall/rule-stat
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects