Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0D75A200BC8 for ; Wed, 23 Nov 2016 16:11:37 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0BFE2160AFB; Wed, 23 Nov 2016 15:11:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 55AA2160AFA for ; Wed, 23 Nov 2016 16:11:36 +0100 (CET) Received: (qmail 13399 invoked by uid 500); 23 Nov 2016 15:11:35 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 13384 invoked by uid 99); 23 Nov 2016 15:11:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2016 15:11:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C6ACBC033A for ; Wed, 23 Nov 2016 15:11:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.22 X-Spam-Level: X-Spam-Status: No, score=-7.22 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id GTRFfJZ3wnyN for ; Wed, 23 Nov 2016 15:11:32 +0000 (UTC) Received: from mx3-phx2.redhat.com (mx3-phx2.redhat.com [209.132.183.24]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3D9E35F4A6 for ; Wed, 23 Nov 2016 15:11:32 +0000 (UTC) Received: from zmail25.collab.prod.int.phx2.redhat.com (zmail25.collab.prod.int.phx2.redhat.com [10.5.83.31]) by mx3-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id uANFBPJm021342 for ; Wed, 23 Nov 2016 10:11:25 -0500 Date: Wed, 23 Nov 2016 10:11:25 -0500 (EST) From: Ganesh Murthy To: users@qpid.apache.org Message-ID: <699670928.1407281.1479913885305.JavaMail.zimbra@redhat.com> In-Reply-To: References: <1576287663.1394557.1479910488862.JavaMail.zimbra@redhat.com> Subject: Re: Qpid Proton/Dispath trace : correlate connection identifier and remote IP/port MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [10.18.97.155] X-Mailer: Zimbra 8.0.6_GA_5922 (ZimbraWebClient - FF48 (Linux)/8.0.6_GA_5922) Thread-Topic: Qpid Proton/Dispath trace : correlate connection identifier and remote IP/port Thread-Index: AQHSRV9QP5nVVCEIJ0+lL0L2ITyvK6Dmh+oAgAAVPACAAAu9gIAAAJJKzEm2cV4= archived-at: Wed, 23 Nov 2016 15:11:37 -0000 Paolo, can you please enter a JIRA for this. Thanks. ----- Original Message ----- > From: "Paolo Patierno" > To: users@qpid.apache.org > Sent: Wednesday, November 23, 2016 10:00:28 AM > Subject: Re: Qpid Proton/Dispath trace : correlate connection identifier and remote IP/port > > Exactly Ted ... I got from Ganesh that it's not possible on the "Accepted > ..." line but it's not necessary. > > > So just a new log line after that when the transport reference is available > to the router. > > > Paolo Patierno > Senior Software Engineer (IoT) @ Red Hat > Microsoft MVP on Windows Embedded & IoT > Microsoft Azure Advisor > > Twitter : @ppatierno > Linkedin : paolopatierno > Blog : DevExperience > > > ________________________________ > From: Ted Ross > Sent: Wednesday, November 23, 2016 2:56 PM > To: users@qpid.apache.org > Subject: Re: Qpid Proton/Dispath trace : correlate connection identifier and > remote IP/port > > > > On 11/23/2016 09:14 AM, Ganesh Murthy wrote: > > > > > > ----- Original Message ----- > >> From: "Robbie Gemmell" > >> To: users@qpid.apache.org > >> Sent: Wednesday, November 23, 2016 7:58:48 AM > >> Subject: Re: Qpid Proton/Dispath trace : correlate connection identifier > >> and remote IP/port > >> > >> On 23 November 2016 at 08:04, Paolo Patierno wrote: > >>> Hi, > >>> > >>> > >>> enabling the Qpid Proton trace through PN_TRACE_FRM=1 when I start the > >>> Qpid > >>> Dispatch Router, I need sometimes to know who is the remote peer is > >>> exchanging traced messages. > >>> > >>> > >>> For example, considering these few lines of trace (running the Qpid > >>> Dispatch Router) : > >>> > >>> > >>> Accepted from 127.0.0.1:48192 > >>> Accepted from 127.0.0.1:48190 > >>> [0x7fbc44016390]: <- SASL > >>> [0x7fbc44016390]: -> SASL > >>> [0x7fbc44003b70]: <- SASL > >>> [0x7fbc44003b70]: -> SASL > >>> [0x7fbc44016390]:0 -> @sasl-mechanisms(64) > >>> [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS, :PLAIN]] > >>> [0x7fbc44003b70]:0 -> @sasl-mechanisms(64) > >>> [sasl-server-mechanisms=@PN_SYMBOL[:ANONYMOUS, :PLAIN]] > >>> > >>> > >>> The router accepts two connections from remote clients (we see IP and > >>> port) > >>> but then every message is related to an "identifier" (I guess it should > >>> be > >>> the file descriptor related to the used socket). > >>> > >> > >> I think the 'identifier' will actually relate to the proton transport, > >> e.g its address, since the engine doesnt know about the socket. > >> > >>> If I need to match these information with Wireshark (where I can see > >>> remote > >>> port) I don't know if remote clients using remote port 48192 is related > >>> to > >>> 0x7fbc44016390 or 0x7fbc44003b70. > >>> > >>> > >>> I think it could be a good information to add into the trace at least > >>> showing the "identifier" after the accepted message, i.e. : > >>> > >>> > >>> Accepted from 127.0.0.1:48192 [0x7fbc44016390] > > I don't think we can display the proton transport reference > > (0x7fbc44016390) next to the host/ephemeral port because we don't have a > > transport yet. Dispatch router code is accepting the connection in > > src/driver.c function qdpn_listener_accept() and proton is not in the > > picture yet. > > If we could issue a log once the transport is created that has the > transport reference and the host/port, that would solve the problem. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org > For additional commands, e-mail: users-help@qpid.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org For additional commands, e-mail: users-help@qpid.apache.org