You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@kafka.apache.org by Gaurav Pande <ga...@gmail.com> on 2023/07/22 05:27:17 UTC
Kafka server.log deletion config
Hi All,
I am running Apache kafka 2.7.0 and I see that presently there are many
server.logv files but how is the deletion of these file governed or can be
governed? Instead of manually deleting them.
Is there some config that I can set to delete them regularly.
Thanks,
GP
Re: Kafka server.log deletion config
Posted by Gaurav Pande <ga...@gmail.com>.
Hi Guys,
Can someone share any kind of example related to defining policy for
server.log deletion in log4j for Kafka
Regards,
GP
On Sat, 22 Jul, 2023, 15:16 Gaurav Pande, <ga...@gmail.com> wrote:
> Thanks Sunil, could you guide me through any example config for this in
> Kafka , any documentation or link that can serve as reference?
> Regards,
> GP
>
> On Sat, 22 Jul, 2023, 14:04 sunil chaudhari, <su...@gmail.com>
> wrote:
>
>> Hi Gaurav,
>> you can make use of log4j.properties for managing log files.
>> Define housekeeping policy and get rid of too many files.
>>
>>
>> On Sat, 22 Jul 2023 at 10:58 AM, Gaurav Pande <ga...@gmail.com>
>> wrote:
>>
>> > Hi All,
>> >
>> > I am running Apache kafka 2.7.0 and I see that presently there are many
>> > server.logv files but how is the deletion of these file governed or can
>> be
>> > governed? Instead of manually deleting them.
>> >
>> > Is there some config that I can set to delete them regularly.
>> >
>> > Thanks,
>> > GP
>> >
>>
>
Re: Kafka server.log deletion config
Posted by Gaurav Pande <ga...@gmail.com>.
Thanks Sunil, could you guide me through any example config for this in
Kafka , any documentation or link that can serve as reference?
Regards,
GP
On Sat, 22 Jul, 2023, 14:04 sunil chaudhari, <su...@gmail.com>
wrote:
> Hi Gaurav,
> you can make use of log4j.properties for managing log files.
> Define housekeeping policy and get rid of too many files.
>
>
> On Sat, 22 Jul 2023 at 10:58 AM, Gaurav Pande <ga...@gmail.com>
> wrote:
>
> > Hi All,
> >
> > I am running Apache kafka 2.7.0 and I see that presently there are many
> > server.logv files but how is the deletion of these file governed or can
> be
> > governed? Instead of manually deleting them.
> >
> > Is there some config that I can set to delete them regularly.
> >
> > Thanks,
> > GP
> >
>
Re: Kafka server.log deletion config
Posted by sunil chaudhari <su...@gmail.com>.
Hi Gaurav,
you can make use of log4j.properties for managing log files.
Define housekeeping policy and get rid of too many files.
On Sat, 22 Jul 2023 at 10:58 AM, Gaurav Pande <ga...@gmail.com> wrote:
> Hi All,
>
> I am running Apache kafka 2.7.0 and I see that presently there are many
> server.logv files but how is the deletion of these file governed or can be
> governed? Instead of manually deleting them.
>
> Is there some config that I can set to delete them regularly.
>
> Thanks,
> GP
>