Jump to: navigation, search

Cassandra and Elasticsearch Indexes

Tune logging with Cassandra running as a Windows service

By default, the Cassandra Windows service sends stdout to a file, as you can see if you examine the StdOutput and StdError settings in the cassandra.bat and cassandra.ps1 files (since the auto setting indicates that the output should be sent to a file):

‐‐StdOutput auto ‐‐StdError auto

When you install Cassandra as a Windows service, these settings are loaded in the Windows registry under this key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\cassandra\parameters\Log]

To disable file-based logging, you can carry out either of the following procedures.

Modifying the Windows Service


  1. Uninstall the Cassandra Windows service.
  2. Specify empty values for the StdOutput and StdError parameters in the cassandra.bat or cassandra.ps1 file.
  3. Reinstall the Cassandra Windows service.


Editing the Registry


  1. Open the Windows Registry Editor
  2. Open the appropriate settings under the [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\cassandra\parameters\Log] key.

    Gwe-cassandra log settings.png

  3. Specify empty values for the StdOutput and StdError parameters.


This page was last modified on February 26, 2016, at 10:56.


Comment on this article:

blog comments powered by Disqus