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

Start

  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.

End

Editing the Registry

Start

  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.

End

This page was last edited on March 10, 2020, at 14:13.
Comments or questions about this documentation? Contact us for support!