Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How does one log slow HTTP responses? I'm using Lighttpd, but could switch to another webserver if necessary.

Apache can log response times, but not conditionally, it seems.

http://httpd.apache.org/docs/2.4/mod/mod_log_config.html

Apache Bench and httping are useful client-side for some general testing but aren't useful for long term logging.

share|improve this question

1 Answer 1

Why not use the piped logs functionality to achieve this? You'll probably have to write your own shell script to write the "slow responses" to a separate file, but you're in complete control here.

See http://httpd.apache.org/docs/2.4/logs.html#piped

share|improve this answer

Your Answer

 
discard

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.