Logging HTTP/2 request processing time - httpd 2.4.37 CentOS 8

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Logging HTTP/2 request processing time - httpd 2.4.37 CentOS 8

hostalp
Hello,
when I use the LogFormat with server processing time included, for example %{ms}T:

LogFormat "%h %l %u %t \"%r\" %>s %b %{ms}T" common-ms

The output in the case of request upgraded to HTTP2 looks as follows:

::1 - -  "GET /server-status HTTP/2.0" 200 25389 1597835516363
::1 - - [19/Aug/2020:13:11:56 +0200] "GET /server-status HTTP/1.1" 101 - 1

As you can see, the time on the 1st line doesn't make much sense in this context, it's the epoch time in milliseconds.
Is there anything that could be done about it to get meaningful processing times for such requests?

Httpd is version 2.4.37 from the standard CentOS 8 package repository.
And I test it simply with curl:
curl --http2 http://localhost/server-status

Best regards,
Petr