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
  1. Specify empty values for the StdOutput and StdError parameters.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on May 18, 2018, at 06:55.