Apache prints the request to access log. The line will tell you which page is access, say test.php but is it possible to ask it to log the HTTP post parameters as well? Ideally, a specific parameter?
2 Answers
Yes, it's possible. I found several references to various methods, depending on whether you want just a set of parameters or a full data dump of POSTed data.
Use
mod_dumpio
. This can dump all input and output (separately, if desired) the server receives. (The same post suggestsmod_security
but doesn't detail a configuration.)Use
mod_log_post
(download). Apparently it's a stripped-down cousin ofmod_security
. See this somewhat related ServerFault question.Don't; instead, log inputs from your script directly. (This is due to security concerns -- a malicious attacker could flood your server with POST requests and fill up the logfile partition.)

- 1,735
- 1
- 14
- 17
-
+ for last point. – JackLeo Jul 11 '12 at 10:41
Not by default not with the mod_log_config module as far as I know.
You might want to check these instructions using the mod_dumpio module.

- 181
- 5