[
https://issues.apache.org/jira/browse/SOLR-9570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl updated SOLR-9570:
------------------------------
Description:
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 issue will instead rotate solr.log properly on startup, delete old
time-stamped files taking up place, back up (one generation only) of
console-log and solr_gc.log in $SOLR_LOGS_DIR/archived/.
was: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.
> 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
> Assignee: Jan Høydahl
> Labels: logging
> Fix For: 6.3, master (7.0)
>
> Attachments: SOLR-8370.patch
>
>
> 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 issue will instead rotate solr.log properly on startup, delete old
> time-stamped files taking up place, back up (one generation only) of
> console-log and solr_gc.log in $SOLR_LOGS_DIR/archived/.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]