Re: logback.xml and logback-yarn.xml rollingpolicy configuration
Thanks Till setting in log4j.properties worked. On Tue, Apr 19, 2016 at 8:04 PM, Till Rohrmannwrote: > Have you made sure that Flink is using logback [1]? > > [1] > https://ci.apache.org/projects/flink/flink-docs-master/apis/best_practices.html#using-logback-instead-of-log4j > > Cheers, > Till > > On Tue, Apr 19, 2016 at 2:01 PM, Balaji Rajagopalan < > balaji.rajagopa...@olacabs.com> wrote: > >> The are two files in the /usr/share/flink/conf directory, and I was >> trying to do the rolling of application logs which goes to following >> directory in task nodes. >> >> /var/log/hadoop-yarn/containers/application_*/container_*/taskmanager.log >> out err >> >> Changing the logback.xml and logback-yarn.xml has no effect on the log >> file size nor any rolling is happening. Any inputs please. >> >> Here is the configuration I have, anything wrong with the config or the >> approach. >> >> >> >> >> ${log.file} >> >> >> >> >> >> ${log.file}_%d{-MM-dd}.%i.log> fileNamePattern> >> >> >> >> >> >> 50MB >> >> >> >> >> >> 30 >> >> >> >> >> UTF-8 >> %d{-MM-dd HH:mm:ss.SSS} [%thread] %-5level >> %logger{60} %X{sourceThread} - %msg%n >> >> >> >> >> >> >> >> %d{-MM-dd HH:mm:ss} %-5level %logger{60} >> %X{sourceThread} - %msg%n >> >> >> >> >> >> >> >> >> >> > >
Re: logback.xml and logback-yarn.xml rollingpolicy configuration
Have you made sure that Flink is using logback [1]? [1] https://ci.apache.org/projects/flink/flink-docs-master/apis/best_practices.html#using-logback-instead-of-log4j Cheers, Till On Tue, Apr 19, 2016 at 2:01 PM, Balaji Rajagopalan < balaji.rajagopa...@olacabs.com> wrote: > The are two files in the /usr/share/flink/conf directory, and I was trying > to do the rolling of application logs which goes to following directory in > task nodes. > > /var/log/hadoop-yarn/containers/application_*/container_*/taskmanager.log > out err > > Changing the logback.xml and logback-yarn.xml has no effect on the log > file size nor any rolling is happening. Any inputs please. > > Here is the configuration I have, anything wrong with the config or the > approach. > > > > > ${log.file} > > > > > > ${log.file}_%d{-MM-dd}.%i.log > > > > > > 50MB > > > > > > 30 > > > > > UTF-8 > %d{-MM-dd HH:mm:ss.SSS} [%thread] %-5level > %logger{60} %X{sourceThread} - %msg%n > > > > > > > > %d{-MM-dd HH:mm:ss} %-5level %logger{60} > %X{sourceThread} - %msg%n > > > > > > > > > >
logback.xml and logback-yarn.xml rollingpolicy configuration
The are two files in the /usr/share/flink/conf directory, and I was trying to do the rolling of application logs which goes to following directory in task nodes. /var/log/hadoop-yarn/containers/application_*/container_*/taskmanager.log out err Changing the logback.xml and logback-yarn.xml has no effect on the log file size nor any rolling is happening. Any inputs please. Here is the configuration I have, anything wrong with the config or the approach. ${log.file} ${log.file}_%d{-MM-dd}.%i.log 50MB 30 UTF-8 %d{-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{60} %X{sourceThread} - %msg%n %d{-MM-dd HH:mm:ss} %-5level %logger{60} %X{sourceThread} - %msg%n