We have a requirement to capture Cassandra logs. Can anybody help me how to implement the same and is there any possibilities to configure in prlogging.xml? If yes, please let me know the steps to do the same.
If you are looking to enable the logging for slow queries then you can set the DEBUG mode to below class,
If you want to get the log for normal queries i.e. queries that are completed successfully within a configurable threshold in milliseconds then you can use below class,
If you want to log unsuccessful queries i.e. queries that dint complete normally and threw an exception you can use the below class. Note this logger will also print the full stack trace of the reported exceptions.
Whenever you will create (DDS)'Decision-Data-Store' [Designer-Studio>Decisioning>Infrastructure>Services>Decision Data Store| |Add node] your node will be added in the Cassandra cluster and there will be directory called Cassandra created in your application server root directory .
By default Cassandra logs placed inside PRPCTemp folder .
If you want to change the path of the Cassandra logs you can follow below steps
1)open the logback.xml file from F:\Application Servers\apache-tomcat-PRPC73\cassandra\conf directory .
2)Change the file name pattern to the desired path in below appender .