Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DBE3918676 for ; Mon, 11 May 2015 10:56:19 +0000 (UTC) Received: (qmail 31648 invoked by uid 500); 11 May 2015 10:56:19 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31600 invoked by uid 500); 11 May 2015 10:56:19 -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 31587 invoked by uid 99); 11 May 2015 10:56:19 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 May 2015 10:56:19 +0000 Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com [209.85.217.181]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id B94BE1A0437 for ; Mon, 11 May 2015 10:56:18 +0000 (UTC) Received: by lbbzk7 with SMTP id zk7so91005387lbb.0 for ; Mon, 11 May 2015 03:56:16 -0700 (PDT) X-Gm-Message-State: ALoCoQmAsr8YjdEu7xzlJdDHmsta5cJG3tdeLyzj+p+TM7PMaJ9ENiKGylFaejc6CDJMxb2ogFft MIME-Version: 1.0 X-Received: by 10.112.131.104 with SMTP id ol8mr299079lbb.58.1431341776831; Mon, 11 May 2015 03:56:16 -0700 (PDT) Received: by 10.114.74.130 with HTTP; Mon, 11 May 2015 03:56:16 -0700 (PDT) X-Originating-IP: [2.136.12.246] Date: Mon, 11 May 2015 12:56:16 +0200 Message-ID: Subject: Tools for grokking zookeeper's txn log From: Ivan Kelly To: zookeeper-user@apache.org Content-Type: text/plain; charset=UTF-8 Hi folks, I recently opensourced some tools we've been using to pull info from the transaction log and snapshot when trying to track down bugs. The first tool, ZkTimemachine allows you to get a dump of the zookeeper state at any point in the past (which you still have the logs for). The second, GrepOps, allows you to grep through the ops in the txn log for a particular session, path or time range, or any of the above. They can be downloaded from: https://github.com/midonet/zktimemachine Also also wrote a blog post about their origin in case anyone is interested. https://medium.com/@ivankelly/mining-zookeeper-s-transaction-log-to-track-down-bugs-63b4c653bb6 -Ivan