[ 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 <hidden> 2013-07-29 11:08:46,749: flush ks1 table1 --password <hidden> {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 <hidden> 2013-07-29 11:08:46,749: flush ks1 table1 --password <hidden> {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