You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jan Høydahl (JIRA)" <ji...@apache.org> on 2016/10/20 19:02:58 UTC

[jira] [Comment Edited] (SOLR-9570) Logs backed up on restart are kept forever

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

Jan Høydahl edited comment on SOLR-9570 at 10/20/16 7:02 PM:
-------------------------------------------------------------

Sorry, commit log had wrong issue-number.

Committed master (97761966f30557c33b3bbb131ce64ea7905ae213)
https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=commit;h=97761966f30557c33b3bbb131ce64ea7905ae213

Branch_6x (ed3b268d62f23e212c410cb35aa4318afa088f55)
https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=commit;h=ed3b268d62f23e212c410cb35aa4318afa088f55


was (Author: janhoy):
Sorry, commit log had wrong issue-number.

Committed master (ed3b268d62f23e212c410cb35aa4318afa088f55)
https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=commit;h=97761966f30557c33b3bbb131ce64ea7905ae213

Branch_6x (ed3b268d62f23e212c410cb35aa4318afa088f55)
https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;a=commit;h=ed3b268d62f23e212c410cb35aa4318afa088f55

> 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org