cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Horia Mocioi <>
Subject Re: Log application Queries
Date Mon, 28 May 2018 08:55:42 GMT

Another way to do it would be to create your own QueryHandler:

  *   create a class that would implement the QueryHandler interface and make Cassandra aware
of it
  *   in that class you can maintain a list of the queries (add to this list when prepare
method is being called) and the current query that you will get from the list when getPrepared
it's called; you can get it from the list using the MD5Digest id
  *   when processPrepared is called you can replace the ? in the query string with the values
in the QueryOptions options.getValues().

On fre, 2018-05-25 at 11:24 -0400, Nitan Kainth wrote:

I would like to log all C* queries hitting cluster. Could someone please tell me how can I
do it at cluster level?
Will nodetool setlogginglevel work? If so, please share example with library name.

C* version 3.11
View raw message