Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2D6361059D for ; Mon, 29 Jul 2013 21:43:50 +0000 (UTC) Received: (qmail 48510 invoked by uid 500); 29 Jul 2013 21:43:49 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 48481 invoked by uid 500); 29 Jul 2013 21:43:49 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 48422 invoked by uid 99); 29 Jul 2013 21:43:49 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Jul 2013 21:43:49 +0000 Date: Mon, 29 Jul 2013 21:43:49 +0000 (UTC) From: "Jason Brown (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CASSANDRA-5823) nodetool history logging MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13723013#comment-13723013 ] Jason Brown edited comment on CASSANDRA-5823 at 7/29/13 9:42 PM: ----------------------------------------------------------------- v1 appends all 'legitimate enough' looking commands to a new ~/.cassandra-nodetool.history file. Ignores calls that have no arguments (the case where you just list out the nodetool help). If there is a password in the argument list, we appropriately mask it in the history. Each nodetool call is logged with a timestamp (of when it was invoked) and the command and any arguments. Sample output: {code}2013-07-29 11:08:33,662: flush ks1 table1 -pw 2013-07-29 11:08:46,749: flush ks1 table1 --password {code} was (Author: jasobrown): v1 appends all 'legitimate enough' looking commands to a new ~/.cassandra-nodetool.history file. Ignores calls that have no arguments (the case where you just list out the nodetool help). Each nodetool call is logged with a timestamp (of when it was invoked) and the command and any arguments. If there is a password in the arguements, we appropriately mask it in the history. Sample output: {code}2013-07-29 11:08:33,662: flush ks1 table1 -pw 2013-07-29 11:08:46,749: flush ks1 table1 --password {code} > nodetool history logging > ------------------------ > > Key: CASSANDRA-5823 > URL: https://issues.apache.org/jira/browse/CASSANDRA-5823 > Project: Cassandra > Issue Type: New Feature > Components: Tools > Reporter: Jason Brown > Assignee: Jason Brown > Priority: Minor > Fix For: 1.2.8, 2.0 rc1 > > Attachments: 5823-v1.patch > > > Capture the commands and time executed from nodetool into a log file, similar to the cli. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira