Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10662

sonar.log should rotate by default

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.6
    • Component/s: None
    • Labels:
      None
    • Edition:
      Community

      Description

      The file logs/sonar.log does not rotate like other log files and this could be expected as per the LOGGING section of conf/sonar.properties:

      All 4 files follow the same rolling policy

      Management of log/sonar.log is handled by JavaServiceWrapper. The solution is to complete the default settings of conf/wrapper.conf:

      wrapper.logfile.rollmode=DATE
      wrapper.logfile=../../logs/sonar-YYYYMMDD.log
      

      More details at https://wrapper.tanukisoftware.com/doc/english/prop-logfile-rollmode.html.

      The documentation https://docs.sonarqube.org/display/SONAR/Server+Log+Management should also be fixed.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tobias.trabelsi Tobias Trabelsi
              Reporter:
              simon.brandhof Simon Brandhof (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: