0

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.

user9517
  • 115,471
  • 20
  • 215
  • 297
XTF
  • 175
  • 2
  • 8

1 Answers1

0

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

Colin 't Hart
  • 302
  • 2
  • 16