logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Error in Apache log timing with http2 since update 26.2.2017
Author
jonny_be_good



Joined: 14 Mar 2017
Posts: 2
Location: Germany

PostPosted: Tue 14 Mar '17 19:53    Post subject: Error in Apache log timing with http2 since update 26.2.2017 Reply with quote

hello,

I wanted to report an error with the timing information in apache log introduced with the newest http2 software from 26.feb.2017 (downloaded from apachelounge)
environment: ws2012r2, apache 2.4.25, php 7.1.2, newest http2 from 26.2.2017, all in 64 bits.

I use the following log format on our customers production server:

Code:
    logformat "%h %l %u %t %{ms}tms \"%r\" %>s %b" hbcommon


Here are 2 log entries for examples (lightly edited for user specific information):

    192.168.yy.xx - - [07/mar/2017:09:29:28 +0100] 0ms "get /menuxxx.php http/1.1" 200 819

    192.168.yy.yy - - [07/mar/2017:09:32:32 +0100] 1171ms "get /menuxxx.php http/2.0" 200 843


These are two log entries from 2 different users (note: 819 or 843 bytes !)
With http2 it seems that the duration time value is shown in microseconds and not in milliseconds as requested, so that all values for http2 log entries are 1000 times higher then before.

The application has not gone any changes and behaves as usual.

To my observation this bug has been introduced with applying mod_http2 1.9.2 and nghttp2 1.20.0 from 26.2.2017.
Back to top
icing



Joined: 22 Sep 2015
Posts: 41
Location: Münster, Germany

PostPosted: Wed 15 Mar '17 12:28    Post subject: Reply with quote

Hmm, I am not the expert on log formats, but to get the duration (I assume that is what you want to see), I have to use something like:
Code:

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


mod_http2 does not by itself mess with logging. It serves requests differently, so numbers will vary between h1 and h2. But it has no influence on the units reported.

-Stefan
Back to top


Reply to topic   Topic: Error in Apache log timing with http2 since update 26.2.2017 View previous topic :: View next topic
Post new topic   Forum Index -> Apache