i used this directives "mod_qos_cr" in my apache access log. value is getting in the log. but i am confused , weather its value of QS_LocRequestLimitMatch or QS_LocRequestPerSecLimitMatch?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
yes... but i am confused because the QS_LocRequestLimitMatch and QS_LocRequestPerSecLimitMatch are different. so the value getting from mod_qos_cr is what basis?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
and your server is currently processing three requests to /index.html and two to /image.png, the value of the mod_qos_cr is "3" for the requests to /index.html because three requests matches the pattern of the rule applied to the request and "0" for the requests to /image.png (no rule match).
Last edit: Pascal Buchbinder 2022-05-17
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have this running in detction mode only / logging mode, and put this LogFormat in.
I would like to see values of %{mod_qos_cr}e %{mod_qos_ev}e in my access log, but I don't. Their values contains hypens.
How should I enable logging of these values. I see similar in their error logs. Likely because the rules are not currently enforced, are they?
Kind regards, Sophie.
Well, you need to configure some QS_* directives in order to get any values of these counters.
Hi Pascal,
I did configure:
SetEnvIfPlus Request_URI ^/fleet-service/Tracking.*$ QS_Limit
QS_ClientEventLimitCount 100 1
QS_ErrorResponseCode 509
<Location/>
ResponseSetEnvIfPlus QS_ErrorNotes 067 RATELIMITED=1
ResponseHeaderPlus set Retry-After 1 env=RATELIMITED
</Location>
Please let me know directives I missed, would you?
Thanks, Sophie
Last edit: sophie 2015-08-28
you may use the
%{QS_Limit_Counter}e %{QS_Limit_Remaining}e
variables to track the clients QS_Limit counter.
Last edit: Pascal Buchbinder 2015-08-30
i used this directives "mod_qos_cr" in my apache access log. value is getting in the log. but i am confused , weather its value of QS_LocRequestLimitMatch or QS_LocRequestPerSecLimitMatch?
Of course, the pattern is relevant on how many requests match them (which resource is accessed).
yes... but i am confused because the QS_LocRequestLimitMatch and QS_LocRequestPerSecLimitMatch are different. so the value getting from mod_qos_cr is what basis?
The mod_qos_cr variable shows the number of concurrent HTTP requests for with the rule applies.
Example: if you have configured
and your server is currently processing three requests to /index.html and two to /image.png, the value of the mod_qos_cr is "3" for the requests to /index.html because three requests matches the pattern of the rule applied to the request and "0" for the requests to /image.png (no rule match).
Last edit: Pascal Buchbinder 2022-05-17