Re: Log rotation on Samza/yarn logs

2015-05-14 Thread Yan Fang
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 On Thu, May 14, 2015 at 10:56 AM, Shekar Tippur ctip...@gmail.com wrote: Hello, How

Re: Log rotation on Samza/yarn logs

2015-05-14 Thread Yi Pan
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:

Re: Log rotation on Samza/yarn logs

2015-05-14 Thread Naveen Somasundaram
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

Re: Log rotation on Samza/yarn logs

2015-05-14 Thread Shekar Tippur
Thanks Yan. - Shekar On Thu, May 14, 2015 at 5:07 PM, Yi Pan 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