-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Apache + Modsecurity + Mlogc make crash in logging phase #1567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Version: ModSecurity Log Collector (mlogc) v2.9.1 |
Hi @itbuiductai Can you reproduce the same environment and check if you have the same results with ModSecurity 2.9.2? There's a number of fixes and improvements on 2.9.2 and highly suggest running it. https://github.com/SpiderLabs/ModSecurity/releases/tag/v2.9.2 |
Dear @victorhora
I also check IO/cpu in my system. But it is normal: 0% wa. Thanks ./. |
Maybe this error came from mlogc. I try to "killall -9 mlogc" and apache service is resuming!!! |
Hi @itbuiductai, The issue that you mentioned earlier (#576) is not related to this mlogc problem that you are facing. #576 is about a problem on the collections which are not directly related to logging. Indeed, it could be a consequence of a crash in mlogc. Is that a possible for you to deploy the mlogc out of Apache process? Having it detached from Apache is way easier to debug this kind of scenario. And it may be the final solution that you are looking for. |
Hi @zimmerle @victorhora
Recently, we try using mlogc to send audit message log to SEIM system. mlogc is configured with default options.
MaxConnections 10
MaxWorkerRequests 1000
But when this configuration run some days, it had a mistake. In one minute, idleworker of apache increased fast and came peak MaxRequestWorkers. apache couldn't handle new requests. RAM, CPU system were normal.

We monitored apache information and saw that all ESTABLISHED request is in LOGGING phase.
All child processes apached used. Old request couldn't closed connection
The text was updated successfully, but these errors were encountered: