Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1E837A75 for ; Wed, 26 Oct 2011 02:28:36 +0000 (UTC) Received: (qmail 81999 invoked by uid 500); 26 Oct 2011 02:28:36 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 81925 invoked by uid 500); 26 Oct 2011 02:28:36 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 81916 invoked by uid 99); 26 Oct 2011 02:28:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 02:28:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of conanmind@gmail.com designates 209.85.210.170 as permitted sender) Received: from [209.85.210.170] (HELO mail-iy0-f170.google.com) (209.85.210.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2011 02:28:32 +0000 Received: by iaeo4 with SMTP id o4so1484983iae.29 for ; Tue, 25 Oct 2011 19:28:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=T8cHyhOqFrKKfkOxTPtN3PYmkjVmeVwXLGOxBzOa4go=; b=r2TAPKVitucjQl1WFypl8mdqMv6EYttorxWqx0m2+oUV+E6sipxXi7XH78uMH44yl4 A72qJK+mBDjm0ncLYnlB0RO+HLwbra1fgXAIZH66GyXPF0pqBzBFF+h3+59Wgk53CFKr pHxLDuHh1BUqIyb+bUQrsRZD77Z03/6ZqIuJQ= MIME-Version: 1.0 Received: by 10.231.24.96 with SMTP id u32mr1150177ibb.61.1319596091692; Tue, 25 Oct 2011 19:28:11 -0700 (PDT) Received: by 10.231.16.137 with HTTP; Tue, 25 Oct 2011 19:28:11 -0700 (PDT) In-Reply-To: <012401cc9337$37fdb540$a7f91fc0$@uhp-nancy.fr> References: <012401cc9337$37fdb540$a7f91fc0$@uhp-nancy.fr> Date: Wed, 26 Oct 2011 10:28:11 +0800 Message-ID: Subject: Re: Custom log issue From: Conan To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary=0015177414284ad79504b02a682f --0015177414284ad79504b02a682f Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I manually add "/" before "%". If request root path, e.g. http://test.com/, custom log will be "GET /- HTTP/1.1". 2011/10/26 Arnaud FLORENTIN > Hi every one,**** > > ** ** > > I=92m a new user of Apache Traffic Server v3 on a debian server.**** > > ** ** > > I would like to test it in replacement of a nginx sever in frontend of an > apache server.**** > > ** ** > > Nervertheless, I have one problem. I want to use custom log to have APS l= og > as apache2 log. So I do not want the complete url but just the url path.*= * > ** > > ** ** > > I have tested the cpuq but there is no =93/=94 at the beginning of the ur= l > path. **** > > ** ** > > **** > > **** > > - % [%] \"% % %\" % > % \"%<{Referer}cqh>\" \"%<{User-Agent}cqh>\""/>**** > > **** > > ** ** > > Example :**** > > ** ** > > With APS, I have this log :**** > > ** ** > > 255.255.255.255 - - [25/Oct/2011:18:43:57 +0100] "GET - HTTP/1.1" 200 856= 0 > "http://www.x.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.= 7 > (KHTML, like Gecko) Chrome/16.0.912.4 Safari/535.7"**** > > 255.255.255.255 - - [25/Oct/2011:18:44:00 +0100] "GET themes/2010/aps.css > HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.= 7 > (KHTML, like Gecko) Chrome/16.0.912.4 Safari/535.7"**** > > ** ** > > With apache or nginx, I have this log :**** > > ** ** > > 255.255.255.255 - - [25/Oct/2011:18:46:32 +0100] "GET / HTTP/1.1" 200 856= 0 > "http://www.x.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.= 7 > (KHTML, like Gecko) Chrome/16.0.912.4 Safari/535.7"**** > > 255.255.255.255 - - [25/Oct/2011:18:47:02 +0100] "GET /themes/2010/aps.cs= s > HTTP/1.1" 304 0 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.= 7 > (KHTML, like Gecko) Chrome/16.0.912.4 Safari/535.7"**** > > ** ** > > Could you help me ?**** > > ** ** > > Arnaud FLORENTIN**** > --0015177414284ad79504b02a682f Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable I manually add "/" before "%<cqup>".

If request root path, e.g. http://test.= com/, custom log will be "GET /- HTTP/1.1".

2011/10/26 Arnaud FLORENTIN <arnaud.florentin@uhp-nancy.fr>

Hi every one,

=A0

I=92m a new user of Apache Tra= ffic Server v3 on a debian server.

=A0

I would like to test it in replace= ment of a nginx sever in frontend of an apache server.=

=A0

Nervertheless, I have one problem. I want to use custom l= og to have APS log as apache2 log. So I do not want the complete url but ju= st the url path.

=A0

I have tested the cpuq but there i= s no =93/=94 at the beginning of the url path.

=A0

<LogFormat>

=A0 <Name =3D "apache"/>

=A0 <Format =3D "%<c= hi> - %<caun> [%<cqtn>] \"%<cqhm> %<cqup> %= <cqhv>\" %<pssc> %<pscl> \"%<{Referer}cqh>= ;\" \"%<{User-Agent}cqh>\""/>

</LogFormat>

=A0

Example :

=A0

With APS, I have this log :=

=A0=

255.255.255.255 - - [25/Oct/201= 1:18:43:57 +0100] "GET - HTTP/1.1" 200 8560 "http://www.x.com/" "Mozilla/= 5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16= .0.912.4 Safari/535.7"

255.255.255.255 - - [25/Oct/201= 1:18:44:00 +0100] "GET themes/2010/aps.css HTTP/1.1" 304 0 "= -" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML,= like Gecko) Chrome/16.0.912.4 Safari/535.7"

=A0

With apache or nginx, I have this = log :

<= u>=A0

255.255.255.255 - - [25/Oct/201= 1:18:46:32 +0100] "GET / HTTP/1.1" 200 8560 "http://www.x.com/" "Mozilla/= 5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16= .0.912.4 Safari/535.7"

255.255.255.255 - - [25/Oct/201= 1:18:47:02 +0100] "GET /themes/2010/aps.css HTTP/1.1" 304 0 "= ;-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML= , like Gecko) Chrome/16.0.912.4 Safari/535.7"

=A0

Could you help me ?<= /span>

=A0

Arnaud FLORENTIN


--0015177414284ad79504b02a682f--