You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Paolo Patierno <pp...@live.com> on 2017/03/09 10:47:14 UTC

Changing "logs" directory path

Hi all,


is there a way to change the directory path where Kafka put its "logs". I'm speaking about not logs in terms of topic data of course, but the text files for logging.

By default a "logs" directory is created in the root dir of kafka. I'd like to change this path.


Thanks,

Paolo.


Paolo Patierno
Senior Software Engineer (IoT) @ Red Hat
Microsoft MVP on Windows Embedded & IoT
Microsoft Azure Advisor

Twitter : @ppatierno<http://twitter.com/ppatierno>
Linkedin : paolopatierno<http://it.linkedin.com/in/paolopatierno>
Blog : DevExperience<http://paolopatierno.wordpress.com/>

Re: Changing "logs" directory path

Posted by Manikumar <ma...@gmail.com>.
we have not documented any environment variables.  you can go through
bin/kafka-run-class.sh script to know the variables. I will add some
documentation.


On Thu, Mar 9, 2017 at 4:30 PM, Paolo Patierno <pp...@live.com> wrote:

> Thanks !
>
> There is a documentation page for all main environment variables used by
> Kafka ?
>
>
> Thanks,
>
> Paolo.
>
>
> Paolo Patierno
> Senior Software Engineer (IoT) @ Red Hat
> Microsoft MVP on Windows Embedded & IoT
> Microsoft Azure Advisor
>
> Twitter : @ppatierno<http://twitter.com/ppatierno>
> Linkedin : paolopatierno<http://it.linkedin.com/in/paolopatierno>
> Blog : DevExperience<http://paolopatierno.wordpress.com/>
>
>
> ________________________________
> From: Manikumar <ma...@gmail.com>
> Sent: Thursday, March 09, 2017 10:56 AM
> To: users@kafka.apache.org
> Subject: Re: Changing "logs" directory path
>
> We can use LOG_DIR environment variable to set logs directory.
>
> On Thu, Mar 9, 2017 at 4:17 PM, Paolo Patierno <pp...@live.com> wrote:
>
> > Hi all,
> >
> >
> > is there a way to change the directory path where Kafka put its "logs".
> > I'm speaking about not logs in terms of topic data of course, but the
> text
> > files for logging.
> >
> > By default a "logs" directory is created in the root dir of kafka. I'd
> > like to change this path.
> >
> >
> > Thanks,
> >
> > Paolo.
> >
> >
> > Paolo Patierno
> > Senior Software Engineer (IoT) @ Red Hat
> > Microsoft MVP on Windows Embedded & IoT
> > Microsoft Azure Advisor
> >
> > Twitter : @ppatierno<http://twitter.com/ppatierno>
> > Linkedin : paolopatierno<http://it.linkedin.com/in/paolopatierno>
> > Blog : DevExperience<http://paolopatierno.wordpress.com/>
> >
>

Re: Changing "logs" directory path

Posted by Paolo Patierno <pp...@live.com>.
Thanks !

There is a documentation page for all main environment variables used by Kafka ?


Thanks,

Paolo.


Paolo Patierno
Senior Software Engineer (IoT) @ Red Hat
Microsoft MVP on Windows Embedded & IoT
Microsoft Azure Advisor

Twitter : @ppatierno<http://twitter.com/ppatierno>
Linkedin : paolopatierno<http://it.linkedin.com/in/paolopatierno>
Blog : DevExperience<http://paolopatierno.wordpress.com/>


________________________________
From: Manikumar <ma...@gmail.com>
Sent: Thursday, March 09, 2017 10:56 AM
To: users@kafka.apache.org
Subject: Re: Changing "logs" directory path

We can use LOG_DIR environment variable to set logs directory.

On Thu, Mar 9, 2017 at 4:17 PM, Paolo Patierno <pp...@live.com> wrote:

> Hi all,
>
>
> is there a way to change the directory path where Kafka put its "logs".
> I'm speaking about not logs in terms of topic data of course, but the text
> files for logging.
>
> By default a "logs" directory is created in the root dir of kafka. I'd
> like to change this path.
>
>
> Thanks,
>
> Paolo.
>
>
> Paolo Patierno
> Senior Software Engineer (IoT) @ Red Hat
> Microsoft MVP on Windows Embedded & IoT
> Microsoft Azure Advisor
>
> Twitter : @ppatierno<http://twitter.com/ppatierno>
> Linkedin : paolopatierno<http://it.linkedin.com/in/paolopatierno>
> Blog : DevExperience<http://paolopatierno.wordpress.com/>
>

Re: Changing "logs" directory path

Posted by Manikumar <ma...@gmail.com>.
We can use LOG_DIR environment variable to set logs directory.

On Thu, Mar 9, 2017 at 4:17 PM, Paolo Patierno <pp...@live.com> wrote:

> Hi all,
>
>
> is there a way to change the directory path where Kafka put its "logs".
> I'm speaking about not logs in terms of topic data of course, but the text
> files for logging.
>
> By default a "logs" directory is created in the root dir of kafka. I'd
> like to change this path.
>
>
> Thanks,
>
> Paolo.
>
>
> Paolo Patierno
> Senior Software Engineer (IoT) @ Red Hat
> Microsoft MVP on Windows Embedded & IoT
> Microsoft Azure Advisor
>
> Twitter : @ppatierno<http://twitter.com/ppatierno>
> Linkedin : paolopatierno<http://it.linkedin.com/in/paolopatierno>
> Blog : DevExperience<http://paolopatierno.wordpress.com/>
>