Return-Path: X-Original-To: apmail-helix-commits-archive@minotaur.apache.org Delivered-To: apmail-helix-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95F3710A02 for ; Fri, 14 Mar 2014 04:58:17 +0000 (UTC) Received: (qmail 66717 invoked by uid 500); 14 Mar 2014 04:58:15 -0000 Delivered-To: apmail-helix-commits-archive@helix.apache.org Received: (qmail 66610 invoked by uid 500); 14 Mar 2014 04:58:11 -0000 Mailing-List: contact commits-help@helix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@helix.apache.org Delivered-To: mailing list commits@helix.apache.org Received: (qmail 66513 invoked by uid 99); 14 Mar 2014 04:58:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 04:58:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 14 Mar 2014 04:58:08 +0000 Received: (qmail 66039 invoked by uid 99); 14 Mar 2014 04:57:48 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2014 04:57:48 +0000 Date: Fri, 14 Mar 2014 04:57:48 +0000 (UTC) From: "Kanak Biscuitwala (JIRA)" To: commits@helix.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HELIX-356) add a tool for grep zk transaction/snapshot logs based on time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HELIX-356?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kanak Biscuitwala updated HELIX-356: ------------------------------------ Fix Version/s: 0.6.3 0.7.1 > add a tool for grep zk transaction/snapshot logs based on time > -------------------------------------------------------------- > > Key: HELIX-356 > URL: https://issues.apache.org/jira/browse/HELIX-356 > Project: Apache Helix > Issue Type: Bug > Reporter: Zhen Zhang > Assignee: Zhen Zhang > Fix For: 0.7.1, 0.6.3 > > > - to grep a pattern by t1 use: > zkgrep --zkCfg zkCfg --by t1 --pattern patterns... > > - to grep a pattern between t1 and t2 use: > zkgrep --zkCfg zkCfg --between t1 t2 --pattern patterns... > > for example, to find fail-over latency between t1 and t2, use: > 1) zkgrep --zkCfg zkCfg --between t1 t2 --pattern "closeSession" | grep {fail-node session-id} > 2) zkgrep --zkCfg zkCfg --between t1 t2 --pattern "/{cluster}" | grep "CURRENTSTATES" | grep "setData" | tail -1 > > fail-over latency = timestamp difference between 1) and 2) -- This message was sent by Atlassian JIRA (v6.2#6252)