Try the following.
KAFKA_LOG4J_OPTS=-Dlog4j.configuration=file:/mylog4jdir
/opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
Thanks,
Jun
On Mon, Nov 17, 2014 at 11:11 AM, Jimmy John jj...@livefyre.com wrote:
How do I configure the application kafka log dir?
Right now
you can configure it under /opt/kafka/config/log4j.properties and look
for kafka.log.dir
On Mon, Nov 17, 2014, at 11:11 AM, Jimmy John wrote:
How do I configure the application kafka log dir?
Right now the default is /var/log/upstart/kafka.log . I want to point it
to
a different mount
I tried that but it did not work. Dug a little deeper and saw this line
in bin/kafka-run-class.sh:
KAFKA_LOG4J_OPTS=-Dkafka.logs.dir=$LOG_DIR $KAFKA_LOG4J_OPTS
changed the above to:
KAFKA_LOG4J_OPTS=$KAFKA_LOG4J_OPTS
and it writes to my configured kafka.logs.dir
jim
On Mon, Nov 17, 2014
Looks like there is already a tkt for this:
https://issues.apache.org/jira/browse/KAFKA-1204
thx
jim
On Mon, Nov 17, 2014 at 1:59 PM, Jimmy John jj...@livefyre.com wrote:
I tried that but it did not work. Dug a little deeper and saw this line
in bin/kafka-run-class.sh: