Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-11726

archived log file names should be named consistently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.1.0
    • Fix Version/s: 3.2.0
    • Component/s: Logging
    • Labels:
      None
    • Story Points:
      0.5
    • Release Note:
      Yes
    • Sprint:
      Sprint 83

      Description

      By default the request.log and nexus.log files are archived every 24 hours.

      nexus-yyyy-mmdd.log.gz
      request-yyyy-mm-dd.log.gz

      The file name formats are defined in logback.xml and logback-access.xml respectively.

      Example from nexus-3.1.0-02:

      ├── jvm.log
      ├── karaf.log
      ├── nexus-2016-1020.log.gz
      ├── nexus-2016-1021.log.gz
      ├── nexus-2016-1108.log.gz
      ├── nexus-2016-1117.log.gz
      ├── nexus-2016-1121.log.gz
      ├── nexus-2016-1122.log.gz
      ├── nexus-2016-1124.log.gz
      ├── nexus-2016-1128.log.gz
      ├── nexus.log
      ├── request-2016-10-20.log.gz
      ├── request-2016-10-21.log.gz
      ├── request-2016-11-08.log.gz
      ├── request-2016-11-17.log.gz
      ├── request-2016-11-21.log.gz
      ├── request-2016-11-22.log.gz
      ├── request-2016-11-24.log.gz
      ├── request-2016-11-28.log.gz
      └── request.log
      

      There is a needless inconsistency. This also appears to be a regression - this was once fixed in : https://github.com/sonatype/nexus-oss/pull/1550/files

      Expected:

      Change the name format of the nexus log to match the request log:

      <fileNamePattern>${karaf.data}/log/nexus-%d{yyyy-MM-dd}.log.gz</fileNamePattern>
      

      What happened to archiving the karaf.log? Any other log archives should be named similar to above pattern.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jtom Joe Tom
                Reporter:
                plynch Peter Lynch
                Last Updated By:
                Joe Tom
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Date of First Response: