Hey Shekar,
                   You can also use the RollingFileAppender.  You can both 
specify the maximum number of files and the maximum number of files you want to 
keep.

https://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/RollingFileAppender.html#maxBackupIndex

On May 14, 2015, at 5:07 PM, Yi Pan 
<nickpa...@gmail.com<mailto:nickpa...@gmail.com>> wrote:

Hi, Shekar,

Are you having a problem w/ retention of too many old log files on disk? I
did a quick search online to see whether there is any configuration for
DailyRollingFileAppender and couldn't find any. The closest thing is this
one: http://wiki.apache.org/logging-log4j/DailyRollingFileAppender.

Regards!

-Yi

On Thu, May 14, 2015 at 3:41 PM, Yan Fang 
<yanfang...@gmail.com<mailto:yanfang...@gmail.com>> wrote:

Hi Shekar,

Currently by default, the log4j is using DailyRollingFileAppender. You can
change the log4j.xml to config as you want. Usually, daily base is good
enough.

Thanks,

Fang, Yan
yanfang...@gmail.com<mailto:yanfang...@gmail.com>

On Thu, May 14, 2015 at 10:56 AM, Shekar Tippur <ctip...@gmail.com> wrote:

Hello,

How are the Samza/yarn logs rotated as a best practice? We seem to be
filling our disk. Should I resort to a Linux logrotate utility or is
there
any log4j config we can leverage?

- Shekar



Reply via email to