batman
batman

Reputation: 4908

How do I log the response time of the first packet?

I'm very new to Apache. I need to log the response time of the first packet received.

Is there any way to do this?

Upvotes: 1

Views: 156

Answers (1)

vvavepacket
vvavepacket

Reputation: 1929

edit your apache configurations and try to include the following lines

# Define logfile format used for response time analysis
LogFormat "\"%{%Y-%m-%d %H:%M:%S}t\" %V %m \"%U\" \"%q\" %{Content-Type}o %s %B %O %D" responsetime
CustomLog "/var/log/apache2/responsetime.log" responsetime

for more information on logging mechanisms, kindly check

Apache log file documentation

Upvotes: 1

Related Questions