# How to get per-rule match count without "rule-profiling"

**URL:** <https://forum.suricata.io/t/how-to-get-per-rule-match-count-without-rule-profiling/5066>\
**Category:** Help\
**Created:** [November 26, 2024, 12:44pm UTC](https://forum.suricata.io/t/how-to-get-per-rule-match-count-without-rule-profiling/5066 "2024-11-26T12:44:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTsai](https://avatars.discourse-cdn.com/v4/letter/j/c0e974/32.png) [@JTsai](https://forum.suricata.io/u/JTsai)\
**Post date:** [November 26, 2024, 12:44pm UTC](https://forum.suricata.io/t/how-to-get-per-rule-match-count-without-rule-profiling/5066/1 "2024-11-26T12:44:39Z")

</div>

> - Suricata version: 7.0.7, with DPDK 20.11
> - Linux distribution: RHEL 8.8
> - Suricata installed from source

I’m a developing L7 firewall using Suricata, which blocks all requests outbound by default (with suricata rule drop/reject) , and allows access to specific domains (with fewer rules) by adding suricata rules pass. I need to count the number of each pass rule is matched.

I know rule-profiling can meet this requirement to a certain extent, but I hope it will not affect performance too much and count all the time, not just for a few tens of seconds. Does suricata have such a feature?
