Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am exploring mod_status for apache monitoring but I am not getting the way to get HTTP status code by this. I also want to monitor request serve per Hr or Day. That info also missing while enable the mod_status.

Does any body have idea like how to get those info ? - HTTP Status Code >400 - Historical data or request. (if I fetch the server-status every 15 min, than history of the request between 1-15min

share|improve this question
Please search for a monitoring tool. Mod_status will provide the information used by the monitoring tools. – Paul Dec 7 '12 at 7:12

mod_status module is NOT used for checking http codes. Please read the documentation MOD_STATUS.

I can however tell you that if you wish to gather statistics you can do so by either getting tools to query your apache log files, write a script to do that for you or use awstat for a more comprehensive stats collection for apache. Pretty powerful.

share|improve this answer
Please let me know how do I parse apache log file to get statistic. Share me if you have any perl/shell script for that. – Amit Nagar Dec 7 '12 at 9:22
As I mentioned you should look at awstat, go to their website install the app and see if thats the stats your require. I currently don't have scripts for that. But it's easy to create one. You should start somewhere as scripting IS the backbone of a sys admin. – Danie Dec 7 '12 at 10:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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