Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3632

Improve ranger logs, RENAME_ON_ROTATE and others

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0, 2.3.0
    • 3.0.0, 2.3.0
    • admin, kms
    • None

    Description

      Currently, the filename of the access-log in use has a timestamp as the suffix. This brings trouble to some log monitoring and analysis programs, such as "tail -f access-log"

      Need to add an option to enable tomcat's RenameOnRotate capability to fix the file name of access-log.

       

      // in EmbeddedServer::start()
      valve.setRenameOnRotate(
      EmbeddedServerUtil.getConfig(ACCESS_LOG_RENAME_ON_ROTATE,  false);
      );

       

      Attachments

        Activity

          People

            kirbyzhou kirby zhou
            kirbyzhou kirby zhou
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: