Logging POST Data with Apache and mod_security
When running an Apache web server, you can find yourself in a situation where you need to capture and log POST data to do some analysis and perhaps to investigate a bad actor to determine a fingerprint pattern. This can be done with the mod_security module, which is a powerful web application firewall that also provides HTTP traffic monitoring, logging and analysis capabilities.
Although this can also be done with mod_dumpio, I wanted to be able to create rulesets to shape the traffic after doing the analysis.