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?

link|improve this question

6% accept rate
feedback

migrated from superuser.com Dec 11 '09 at 12:55

This question came from our site for computer enthusiasts and power users.

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 suggests mod_security but doesn't detail a configuration.)

  • Use mod_log_post (download). Apparently it's a stripped-down cousin of mod_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.)

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.