You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "zhbgs2000 (via GitHub)" <gi...@apache.org> on 2024/04/24 13:13:27 UTC

[D] /data/bookie1/ledgers/current log clean [pulsar]

GitHub user zhbgs2000 created a discussion: /data/bookie1/ledgers/current log clean

There are many .log files under the /data/bookie1/ledgers/current directory, which occupy a large amount of space. How can I clean them up?

![1713964216654](https://github.com/apache/pulsar/assets/19635652/9e257752-d22d-4f5c-9bd5-394dfba754f6)




GitHub link: https://github.com/apache/pulsar/discussions/22574

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org


Re: [D] /data/bookie1/ledgers/current log clean [pulsar]

Posted by "visortelle (via GitHub)" <gi...@apache.org>.
GitHub user visortelle edited a comment on the discussion: /data/bookie1/ledgers/current log clean

I didn't configure it for Bookkeeper, but I suppose that you can configure it in `log4j.properties` file:

> To enable logging for a bookie, create a log4j.properties file and point the BOOKIE_LOG_CONF environment variable to the configuration file.

https://bookkeeper.apache.org/docs/admin/bookies#logging

> RollingFileAppender does this. You just need to set maxBackupIndex to the highest value for the backup file.

https://stackoverflow.com/a/1050318/4182882

GitHub link: https://github.com/apache/pulsar/discussions/22574#discussioncomment-9213583

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org


Re: [D] /data/bookie1/ledgers/current log clean [pulsar]

Posted by "visortelle (via GitHub)" <gi...@apache.org>.
GitHub user visortelle added a comment to the discussion: /data/bookie1/ledgers/current log clean

I suppose you can configure it in `log4j.properties` file:

> To enable logging for a bookie, create a log4j.properties file and point the BOOKIE_LOG_CONF environment variable to the configuration file.

https://bookkeeper.apache.org/docs/admin/bookies#logging

> RollingFileAppender does this. You just need to set maxBackupIndex to the highest value for the backup file.

https://stackoverflow.com/a/1050318/4182882

GitHub link: https://github.com/apache/pulsar/discussions/22574#discussioncomment-9213583

----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org