Logging HTTP/2 request processing time - httpd 2.4.37 CentOS 8
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: <users@xxxxxxxxxxxxxxxx>
- Subject: Logging HTTP/2 request processing time - httpd 2.4.37 CentOS 8
- From: <hostalp@xxxxxxx>
- Date: Wed, 19 Aug 2020 13:24:52 +0200 (CEST)
- Reply-to: users@xxxxxxxxxxxxxxxx
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
[Index of Archives]
[Open SSH Users]
[Linux ACPI]
[Linux Kernel]
[Linux Laptop]
[Kernel Newbies]
[Security]
[Netfilter]
[Bugtraq]
[Squid]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Samba]
[Video 4 Linux]
[Device Mapper]