Return-Path: X-Original-To: apmail-trafficserver-dev-archive@www.apache.org Delivered-To: apmail-trafficserver-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 CBCB1117B3 for ; Wed, 16 Apr 2014 15:45:46 +0000 (UTC) Received: (qmail 49387 invoked by uid 500); 16 Apr 2014 15:45:41 -0000 Delivered-To: apmail-trafficserver-dev-archive@trafficserver.apache.org Received: (qmail 49201 invoked by uid 500); 16 Apr 2014 15:45:27 -0000 Mailing-List: contact dev-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@trafficserver.apache.org Delivered-To: mailing list dev@trafficserver.apache.org Received: (qmail 48159 invoked by uid 99); 16 Apr 2014 15:44:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 15:44:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ming.zym@gmail.com designates 209.85.220.48 as permitted sender) Received: from [209.85.220.48] (HELO mail-pa0-f48.google.com) (209.85.220.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Apr 2014 15:44:48 +0000 Received: by mail-pa0-f48.google.com with SMTP id hz1so11043389pad.21 for ; Wed, 16 Apr 2014 08:44:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=M7QQWX3Bj2e8VRqcUoTw0I1WYKjk5U2hQN63H6c6gtg=; b=ORu34FAmKElltd2aweuiUHqDuvYTg/2SOnuMhpfX6rT6tnRZnWC/bTgRrwwozZgQXY mVu4/urrVRPu03MzPFo+vBtkcv8tsbHEnd1B3efxhfyShb8nEI5oe/rN4z2MSU6ObAg+ gV+ZCwzwKb6atPWe7G8jRsNL6HFxvrAez+4JJyjSJr0jGOAeXleyoDMcdbaNDGnosR6D rmHcAe4LEShh/hvYvZQ2GllFCzXVZVPItF3kfusll/8tnTDmusV9tT6BF41r2Mn67Zk7 qCG4NZFsueXIvv+XiEb/0T2e5NmD8E8Bi660+PIXjWarCovQTM4YKor1r1kOT37KbvqQ HS2w== X-Received: by 10.66.254.198 with SMTP id ak6mr3028839pad.156.1397663067939; Wed, 16 Apr 2014 08:44:27 -0700 (PDT) Received: from [192.168.88.218] ([61.149.240.31]) by mx.google.com with ESMTPSA id eb5sm112820297pad.22.2014.04.16.08.44.14 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Apr 2014 08:44:27 -0700 (PDT) From: Yongming Zhao Content-Type: multipart/alternative; boundary="Apple-Mail=_0254919A-90E1-4F97-AE2F-F9CE1BD13700" Message-Id: <5C3463A6-2AD9-478C-9583-254BCAEFDEF5@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: 'ServerHosts' in 'logs_xml.config not work Date: Wed, 16 Apr 2014 23:44:04 +0800 References: <280484D6-9333-4DFB-81BF-681CD8C71D53@gmail.com> <0A298D16-24BC-46CD-B69B-7D7E61D9E68E@gmail.com> To: users@trafficserver.apache.org, dev@trafficserver.apache.org In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_0254919A-90E1-4F97-AE2F-F9CE1BD13700 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=GB2312 I really don=A1=AFt think the summary is able to send to the collation = server, please file a jira for this new feature if you really want to. as aways, patch welcome. - Yongming Zhao =D5=D4=D3=C0=C3=F7 =D4=DA 2014=C4=EA4=D4=C214=C8=D5=A3=AC=CF=C2=CE=E73:09=A3=ACHarJin Park = =D0=B4=B5=C0=A3=BA > Thank you, it's work well. >=20 > Next step is to put the summary log to log collation server. > So I config like this. >=20 > > > : % : %"/> > > >=20 > > > > > > > >=20 > I want to make summary log to 'collation.test.com' but it's not work. > I don't know why. Could you help me ? >=20 >=20 >=20 > 2014-04-11 15:23 GMT+09:00 Yongming Zhao : > yeah, that is the mapped issue. you may find out one of the following = two ways for your needs: > 1, make use of the DNS system instead of the ip address in = remap.config: >=20 > map http://test.test.com/ http://origin.test.com/ >=20 > and setup your dns to resolve origin.test.com to your ip address, then = you may use the ServerHosts directives in logs_xml.config file. >=20 > 2, write your own LogFilters instead of =A1=AEServerHosts=A1=AF = directive. > =20 > using the =A1=AEcquuh=A1=AF to get the origin client query host. >=20 >=20 > btw, ServerHosts is a quick LogFilters on the mapped hostname. >=20 > FYI >=20 > - Yongming Zhao =D5=D4=D3=C0=C3=F7 >=20 > =D4=DA 2014=C4=EA4=D4=C211=C8=D5=A3=AC=CF=C2=CE=E71:21=A3=ACHarJin = Park =D0=B4=B5=C0=A3=BA >=20 >> Hello Zhao >>=20 >> My remap.config is below. >>=20 >> map http://test.test.com/ http://192.168.10.100/ >> reverse_map http://192.168.10.100/ http://test.test.com/ >> map http://abc.abc.com/ http://192.168.10.200/ >> reverse_map http://192.168.10.200/ http://abc.abc.com/ >>=20 >>=20 >> I'd like to separate logging abc.com and test.com >>=20 >> Thanks. >>=20 >>=20 >>=20 >> 2014-04-11 12:09 GMT+09:00 Yongming Zhao : >> what is in your remap if you running a reversed proxy? the logging is = based on the remapped URI, that is the server name after remap. >>=20 >> is that the problem? >>=20 >> thanks >>=20 >> - Yongming Zhao =D5=D4=D3=C0=C3=F7 >>=20 >> =D4=DA 2014=C4=EA4=D4=C210=C8=D5=A3=AC=CF=C2=CE=E74:55=A3=ACHarJin = Park =D0=B4=B5=C0=A3=BA >>=20 >>> Hi >>> I'm using 4.2.0 TS, my config file is below. >>>=20 >>> >>> >>> .... >>> >>>=20 >>> >>> >>> >>> >>> >>>=20 >>> >>> >>> >>> >>> >>> >>>=20 >>> There is no log file even I did using curl 'http://test.test.com'. >>> If I remove 'SeverHosts' tag, it is work well. >>>=20 >>> I don't know why it's not work, plz give me some examples. >>>=20 >>> Thanks. >>>=20 >>=20 >>=20 >=20 >=20 --Apple-Mail=_0254919A-90E1-4F97-AE2F-F9CE1BD13700--