The Apache Httpd manual has a section on custom access log formats. One of these options is the %D
field, which is documented as
The time taken to serve the request, in microseconds.
Can anyone tell me what exactly this is measuring? Is it time-to-first-byte, or time-to-last-byte, for example, or something more complex than that?
I need this is demonstrate compliance to performance requirements, and I want to know exactly what's being measured here.
Using Terminal Commands to Display Local Access Logs By default, you can find the Apache access log file at the following path: /var/log/apache/access. log. /var/log/apache2/access.
Log Format In Linux, Apache commonly writes logs to the /var/log/apache2 or /var/log/httpd directories depending on your OS and Virtual Host overrides. You can also define a LogFormat string after the filename, which will only apply the format string to this file.
%h – Remote host (client IP address) %l – User identity, or dash, if none (often not used) %u – Username, via HTTP authentication, or dash if not used. %t – Timestamp of when Apache received the HTTP request.
Types of Apache Log There are two types of logs produced by Apache: Access logs and Error logs. The access log keeps track of the requests that come into the webserver. This data could include what pages visitors are looking at, the status of requests, and how long it took the server to respond.
It's the last byte or rather, apr_time_now() - request_rec->request_time
which is worked out during the logging phase. That phase happens last in the processing cycle, after the response has been sent.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With