Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9570

Logs backed up on restart are kept forever

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.3, 7.0
    • Component/s: scripts and tools
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:

      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/.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                janhoy Jan Høydahl
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                0 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: