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 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
>

Reply via email to