# Haproxy ACL hit count

**URL:** <https://discourse.haproxy.org/t/haproxy-acl-hit-count/11281>\
**Category:** Help!\
**Created:** [October 16, 2024, 7:39pm UTC](https://discourse.haproxy.org/t/haproxy-acl-hit-count/11281 "2024-10-16T19:39:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://discourse.haproxy.org/u/igor)\
**Post date:** [October 16, 2024, 7:39pm UTC](https://discourse.haproxy.org/t/haproxy-acl-hit-count/11281/1 "2024-10-16T19:39:36Z")

</div>

Hi,

I am trying to see which acl’s are generally in use and which are not in a config. Is there a way to see how many hits each acl has?

Thanks,  
Igor

---

<div class="post-metadata">

**Author:** ![Rfraile](https://avatars.discourse-cdn.com/v4/letter/r/50afbb/32.png) [@Rfraile](https://discourse.haproxy.org/u/Rfraile)\
**Post date:** [October 19, 2024, 9:59am UTC](https://discourse.haproxy.org/t/haproxy-acl-hit-count/11281/2 "2024-10-19T09:59:41Z")

</div>

You need to repeat the acl and do an other action with it to let you know.

The easy one is to add a header, other alternatives involve using tables and increment counters.

---

<div class="post-metadata">

**Author:** ![igor](https://avatars.discourse-cdn.com/v4/letter/i/dec6dc/32.png) [@igor](https://discourse.haproxy.org/u/igor)\
**Post date:** [October 21, 2024, 10:43pm UTC](https://discourse.haproxy.org/t/haproxy-acl-hit-count/11281/3 "2024-10-21T22:43:52Z")

</div>

Hi @Rfraile,

Thanks for the response. Can you elaborate further please on your answer with some examples?  
What do you mean exactly when saying “repeat the acl and do an other action with it” ?

Thanks,  
Igor
