kafka-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jimmy John <jj...@livefyre.com>
Subject Re: kafka application logdir
Date Mon, 17 Nov 2014 21:59:50 GMT
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 at 11:29 AM, Harsha <kafka@harsha.io> wrote:

> 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 dir... e.g.
> >
> > /opt/kafka/bin/kafka-server-start.sh /opt/kafka/config/server.properties
> > --logdir /mnt/kafka/kafka-app-logs
> >
> > But the above gives me errors :
> >
> > USAGE: java [options] KafkaServer server.properties
> >
> >
> > NOTE: these are application log dir , not the data directory.
> >
> >
> > Any recommended way to point the application log to a different place?
> >
> > thx
> >
> > jim
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message