You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "kirby zhou (Jira)" <ji...@apache.org> on 2022/02/19 02:53:00 UTC

[jira] [Created] (RANGER-3632) Add a option to fix the filename of current access-log

kirby zhou created RANGER-3632:
----------------------------------

             Summary: Add a option to fix the filename of current access-log
                 Key: RANGER-3632
                 URL: https://issues.apache.org/jira/browse/RANGER-3632
             Project: Ranger
          Issue Type: Improvement
          Components: admin, kms
    Affects Versions: 3.0.0, 2.3.0
            Reporter: kirby zhou


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.

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



--
This message was sent by Atlassian Jira
(v8.20.1#820001)