Return-Path: X-Original-To: apmail-httpd-dev-archive@www.apache.org Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D025319F46 for ; Wed, 30 Mar 2016 13:00:08 +0000 (UTC) Received: (qmail 95642 invoked by uid 500); 30 Mar 2016 13:00:08 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 95576 invoked by uid 500); 30 Mar 2016 13:00:08 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 95565 invoked by uid 99); 30 Mar 2016 13:00:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Mar 2016 13:00:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9DA2B1A62F4 for ; Wed, 30 Mar 2016 13:00:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id dg5VI8kkkB1O for ; Wed, 30 Mar 2016 13:00:05 +0000 (UTC) Received: from mail-ig0-f177.google.com (mail-ig0-f177.google.com [209.85.213.177]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 3D6285F5CD for ; Wed, 30 Mar 2016 13:00:05 +0000 (UTC) Received: by mail-ig0-f177.google.com with SMTP id nk17so101010567igb.1 for ; Wed, 30 Mar 2016 06:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to; bh=P9jG1Ij/nMtl9kCeGpqAuUuThRuTKyWEFCFNraMryqQ=; b=v5yIhmVVs9TT2pI6htfYeVTAoUTDUgjcJj55BaHwYSeCuSmbN0ErNJ3eJRiP2LEzou UxPpvrhnV75jckUYGLNqqZDMF0C8XO+CcwYi39dyfSlXdqQmYO3L9MO7HEXJXFlhF2em 5bkUCHNW7t0LesHjLADtPhCKAtZuHSaPiT1YTlNz+BRed9X+msODkntVnq7ZtTz+3G5t 4t1xn2458aqDFiilEb4bH0Vnxbz/0vnnnAeJmIHxVbXNOsfWJ/mOPzvuOPDocXkaJIXV 2+7f1gjGRKgaHoiE6TYGJJU0rEbCdmsfygEAJi2dfp1WwaiZJgSsdrr8vRRtZLk+q9bb fzQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to; bh=P9jG1Ij/nMtl9kCeGpqAuUuThRuTKyWEFCFNraMryqQ=; b=kG7HweAQ5VznflFLXdfyjL+gugxWSwjIFbDgv4+uqxJZhMMaRAeZIYNCHZpaRRhP8W 5ZAQnnzo9grFibSffC5l+gt/dne9VrdvhW/Mwa1T02cjml+pXwfh1Z8xop8gK/R51d1m DHLHwDv6nf2ajx8QP896/mNiSHE9POX2mx9hJYr3ntLDpjJIsZ1QFC9O3njOwbLnh7Oq Z4NML5MWSOK1jC7srpk68kJK5ZgOFCQk9FFO4v06lRYzHspWYXVMZOrlvJJBO67yGlQo 8K2lKDpSyYT2PKzj2dr6pUPT4PmhiRCIMTupyfl2MRgMOK6h6weA0tL43sinvBsFUqSa rUZg== X-Gm-Message-State: AD7BkJJBKK/Ex/ZTno+CnLqLgqpEpQ1DMIxv+AhT8Oh80xfyTMnOZ+DjFWcqOrlR4HIAdsmyomM6J1WcMlCuYg== MIME-Version: 1.0 X-Received: by 10.50.30.134 with SMTP id s6mr21040706igh.36.1459342804271; Wed, 30 Mar 2016 06:00:04 -0700 (PDT) Received: by 10.64.39.16 with HTTP; Wed, 30 Mar 2016 06:00:04 -0700 (PDT) In-Reply-To: References: Date: Wed, 30 Mar 2016 09:00:04 -0400 Message-ID: Subject: Re: http2 in custom logs From: Eric Covener To: Apache HTTP Server Development List Content-Type: text/plain; charset=UTF-8 On Wed, Mar 30, 2016 at 8:53 AM, Stefan Eissing wrote: > I need your advice: I want to offer more HTTP/2 related log variables. The > question is how to best do this: > a) %x (or another free char) could work. I do not know which one is really > unallocated out there, though. I could make %{VAR_NAME}x work to provide > the different values. Slim pickings, and the two-character ones are ugly for backwards compat. %{PUSHED}^H2 > b) %{VAR_NAME}e, but then I'd need to populate subprocess_env too much and > I do not like the +StdEnvXXX configuration... I think if they are cheap to "calculate" and short they do not need to be opt-in like the SSL vars. This would also allow them to be used in expressions and conditional logs without more work too. > c) ??? > > Thanks for the help, > > -Stefan > > PS. Current plans are to provide > HTTP2 "on"|"off" connection uses h2/h2c > H2PUSH "on"|"off" connection allows Server Push > H2_PUSH "on"|"off" same > H2_PUSHED NULL|"PUSHED" when request is being PUSHed by the server > H2_PUSHED_ON NULL|n stream identifier that initiated the PUSH I meant to look at this one, there was a good question on stackexchange about why pushed items show up in the logs. The users instinct was that the push didn't work! > H2_STREAM_ID NULL|n HTTP/2 stream number for request > H2_STREAM_TAG NULL|m-n process wide unique tag from connection id + stream id, e.g. 64-13 > -- Eric Covener covener@gmail.com