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 73CDD200B96 for ; Thu, 6 Oct 2016 22:45:50 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7251B160ADB; Thu, 6 Oct 2016 20:45:50 +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 B00C8160AC5 for ; Thu, 6 Oct 2016 22:45:49 +0200 (CEST) Received: (qmail 2460 invoked by uid 500); 6 Oct 2016 20:45:48 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 2436 invoked by uid 99); 6 Oct 2016 20:45:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2016 20:45:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 70B33C7A33 for ; Thu, 6 Oct 2016 20:45:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id IzcSSNmv-DQw for ; Thu, 6 Oct 2016 20:45:45 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 54E965FB83 for ; Thu, 6 Oct 2016 20:45:45 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id o68so26707901qkf.3 for ; Thu, 06 Oct 2016 13:45:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RKMiqBM0FGc8aU6L2DhESZ4sapnvzGmte9wTkrN+swo=; b=HPRsWbImfWpJSecbIEFwol8+8ruBl6rauhVINcHS5X5ihYTOQ54/IA4CirfMnE3bik GvX6jZJloa1VJPOZfKpz4PYPYgwMW1nMu3ZLEbQy659y83VR0Y9Cv3OCjhtxu8mbjQWt Pf9niKMBRq/h8rmn0DkdMwcnTfgc5Dstz6sbsJe26aBQsLvl52bgmV9MUv5lV7156Ikt 2ryFhMqD7YIGohOB/rMnDERdyx7Z4wkwztW/QYgirbgPn0w1+DuLuTiq3Y3r/2HG0jt3 wi+hFDdsP+YaO9OkoipSEjyqdnsb+TeruFT+ByprDlB73lRz/QSlFq7rQYfO3Qe2cyla qG0A== 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:from:date :message-id:subject:to; bh=RKMiqBM0FGc8aU6L2DhESZ4sapnvzGmte9wTkrN+swo=; b=aqPEH4pdxcGDn5VKKQuLaJ1p2RmRmB6czr21HoP/q4nL1FyOVlONZ83ubJk9mLbZHo 6582iQIq3qX042NMEZy5q2xA6EOPKJ8XIPvY4KiWUZxwfMnTchypjCLsvAVmnHNCaYL+ 2V8EjNLUN08NcvDRC5V0dX7/gUEkrZNNMJKmu+P8EPlED09l3A4vTEfH09r/md4yxFa+ 2CtzYFE6D6/ut4Uxy8Vyg5VA2dGbQcraq8jJUujMrOQu0acA4k9hCURXqOCwMnSugMTM hMILI4LpXNfPX4Vo8kP9xUDSRVoWzIa3b+xIpQBs7xjcwu/DGQq8+icobiHEFND9KmGI zwZg== X-Gm-Message-State: AA6/9Rk2Oy4ECZlGLXy0SgyOqmPM7oFQqwakV4Fjj3HLp6mbazI/Mvh/3Wgqn9jMMs8EuYYH2rLNGbc/g6S2zw== X-Received: by 10.55.31.31 with SMTP id f31mr16599952qkf.245.1475786738907; Thu, 06 Oct 2016 13:45:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.129.137 with HTTP; Thu, 6 Oct 2016 13:45:38 -0700 (PDT) In-Reply-To: References: From: Arshad Mohammad Date: Fri, 7 Oct 2016 02:15:38 +0530 Message-ID: Subject: Re: tracing client request/responses To: user@zookeeper.apache.org Content-Type: multipart/alternative; boundary=001a1147adc456419f053e3860f6 archived-at: Thu, 06 Oct 2016 20:45:50 -0000 --001a1147adc456419f053e3860f6 Content-Type: text/plain; charset=UTF-8 Zookeeper Trace log does work as expected. 1)It can be enabled but the logs will go in the normal log file (zookeeper-root-server-host.log) only. The trace logs will not go in separate zookeeper_trace.log file as expected. No configuration in log4j.properties can change this behaviour. In all cases normal log and trace log will be in the same file. 2)Code must be modified to put the trace logs into seprate file, but even in that case trace file will not have the data, TraceFormatter is expecting. Trace log looks like 2016-10-06 01:19:52,706 [myid:1] - TRACE [FollowerRequestProcessor:1:ZooTrace@95][] - :Fsessionid:0x1000031c4cc0000 type:createSession cxid:0x0 zxid:0xfffffffffffffffe txntype:unknown reqpath:n/a 2016-10-06 01:19:52,909 [myid:1] - TRACE [FollowerRequestProcessor:1:ZooTrace@95][] - :Fsessionid:0x1000031c4cc0000 type:exists cxid:0x3 zxid:0xfffffffffffffffe txntype:unknown reqpath:/allOps TraceFormatter is expecting some kind of binary data so it is not going to work even after separating the trace logs. -Arshad On Thu, Oct 6, 2016 at 6:09 AM, Benjamin Reed wrote: > anyone know how to turn on tracing to get a file that i can run through the > TraceFormatter? i see the 4 letter works to set tracing masks, but i can't > seem to find the switch to actually turn on tracing. > > thanx > ben > --001a1147adc456419f053e3860f6--