[ 
https://issues.apache.org/jira/browse/SOLR-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15526100#comment-15526100
 ] 

Shawn Heisey commented on SOLR-9570:
------------------------------------

If old logs are moved into a subdirectory, then the shell script can use the 
"find" utility to clean them up.  This utility exists on most POSIX systems and 
although there are differences in capability between different systems, I think 
there is strong effort to accept the options for core usage like this on all 
platforms.

It's possible to do something similar in Windows, but in typical style, it 
requires a syntax change depending on the Windows version.

> Logs backed up on restart are kept forever
> ------------------------------------------
>
>                 Key: SOLR-9570
>                 URL: https://issues.apache.org/jira/browse/SOLR-9570
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: scripts and tools
>            Reporter: Jan Høydahl
>
> When (re)starting Solr, the start script will backup any existing 
> {{solr.log}} or {{solr_gc.log}} to a file {{solr_log_<date>}} and 
> {{solr_gc_log_<date>}} respectively. That may be all good, but these old 
> copies are never cleaned up, as they are not under the control of log4j.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to