Hi Alexandre,

Thanks for your reply.

This is what is in my log4j.properties file.

#  Logging level
log4j.rootLogger=INFO, stderr

# log to stderr
log4j.appender.stderr = org.apache.log4j.ConsoleAppender
log4j.appender.stderr.Target = System.err
log4j.appender.stderr.layout = org.apache.log4j.PatternLayout
log4j.appender.stderr.layout.ConversionPattern=%-5p - %d{yyyy-MM-dd
HH:mm:ss.SSS}; %C; %m%n

# quiet down the ZK logging for cli tools
log4j.logger.org.apache.zookeeper=WARN
log4j.logger.org.apache.solr.common.cloud=WARN


Regards,
Edwin

On 19 August 2016 at 19:49, Alexandre Rafalovitch <arafa...@gmail.com>
wrote:

> This _should_ be controlled by the resources/log4j.properties file.
> Which I thought was configured to have a rolling append.
>
> What does yours have?
>
> Regards,
>    Alex.
> ----
> Newsletter and resources for Solr beginners and intermediates:
> http://www.solr-start.com/
>
>
> On 19 August 2016 at 17:47, Zheng Lin Edwin Yeo <edwinye...@gmail.com>
> wrote:
> > Hi,
> >
> > I found that all the logs in Solr are appended in the same solr.log file
> > until Solr is restarted. If I keep Solr running for several weeks without
> > restarting (which should be the case in production environment), the size
> > of the solr.log can be very large (more than several GB in some cases).
> >
> > Is it possible to do some configuration, so that the log is append to a
> new
> > solr.log file every day, instead of until Solr is restarted? This will
> make
> > reviewing of the logs much easier.
> >
> > I'm using Solr 6.1.0
> >
> > Regards,
> > Edwin
>

Reply via email to