You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Zephyr Guo (JIRA)" <ji...@apache.org> on 2019/05/09 14:03:00 UTC
[jira] [Comment Edited] (CASSANDRA-15090) Customize cassandra log
directory
[ https://issues.apache.org/jira/browse/CASSANDRA-15090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16836409#comment-16836409 ]
Zephyr Guo edited comment on CASSANDRA-15090 at 5/9/19 2:02 PM:
----------------------------------------------------------------
Thank you for your review. [~michaelsembwever]
1.Take a look on Startup command, we put cassandra_parms after JVM_OPTS, so cassandra.logdir would override by cassandra_parms. I mean that we cannot set cassandra.logdir by adding it to jvm.options.
{code: sh}
exec $NUMACTL "$JAVA" $JVM_OPTS $cassandra_parms -cp "$CLASSPATH" $props "$class"
{code}
2.We could put CASSANDRA_CONF CASSANDRA_LOG_DIR to /etc/profile.d, so that others(script, daemon, tool) could find cassandra log dir conveniently such as collectting log events agent.
3.All of cassandra‘s tools could take advantage of CASSANDRA_LOG_DIR, outputting log of tool to uniform place if necessary.
was (Author: gzh1992n):
Thank you for your review. [~michaelsembwever]
1.Take a look on Startup command, we put cassandra_parms after JVM_OPTS, so cassandra.logdir would override by cassandra_parms. I mean that we cannot set cassandra.logdir by adding it to jvm.options.
{code:shell}
exec $NUMACTL "$JAVA" $JVM_OPTS $cassandra_parms -cp "$CLASSPATH" $props "$class"
{code}
2.We could put CASSANDRA_CONF CASSANDRA_LOG_DIR to /etc/profile.d, so that others(script, daemon, tool) could find cassandra log dir conveniently such as collectting log events agent.
3.All of cassandra‘s tools could take advantage of CASSANDRA_LOG_DIR, outputting log of tool to uniform place if necessary.
> Customize cassandra log directory
> ---------------------------------
>
> Key: CASSANDRA-15090
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15090
> Project: Cassandra
> Issue Type: New Feature
> Reporter: Zephyr Guo
> Assignee: Zephyr Guo
> Priority: Normal
> Attachments: CASSANDRA-15090-v1.patch
>
>
> Add a new variable CASSANDRA_LOG_DIR (default: $CASSANDRA_HOME/logs) so that we could customize log directory such as ‘/var/log/cassandra’ .
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org