diff options
author | Arne Juul <arnej@yahoo-inc.com> | 2018-09-03 08:00:12 +0000 |
---|---|---|
committer | Arne Juul <arnej@yahoo-inc.com> | 2018-09-06 13:00:14 +0000 |
commit | 30fd1322c666d8e48fae340dc69ce5030069e30b (patch) | |
tree | ee2b340ea309ff07d8bc867952dc65abed863f06 /container-accesslogging/src/main/resources/configdefinitions/access-log.def | |
parent | ae594f2b7453ff1c5109fd8a9cec9339ec0a6366 (diff) |
enforce log retention policies
* for access logs, save meta-data about the log file itself
in a simple format.
* implement a proof-of-concept shell script that removes
log files after one month.
* ensure retention enforcer is started when services start
* note that retention enforcer will continue running even
after services stop, but it has protection to ensure that
it won't multiply endlessly.
Diffstat (limited to 'container-accesslogging/src/main/resources/configdefinitions/access-log.def')
-rw-r--r-- | container-accesslogging/src/main/resources/configdefinitions/access-log.def | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/container-accesslogging/src/main/resources/configdefinitions/access-log.def b/container-accesslogging/src/main/resources/configdefinitions/access-log.def index 276128e0405..9df9299ae19 100644 --- a/container-accesslogging/src/main/resources/configdefinitions/access-log.def +++ b/container-accesslogging/src/main/resources/configdefinitions/access-log.def @@ -1,11 +1,16 @@ # Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. namespace=container.core - # File name patterns supporting the expected time variables, e.g. ".%Y%m%d%H%M%S" fileHandler.pattern string + +# When should rotation happen, in minutes after midnight +# Does this really need to be configurable? +# Could just configure "every N minutes" instead fileHandler.rotation string default="0 60 ..." +# TODO remove in Vespa 7, always use DATE +# # Defines how file rotation is done. There are two options: # # DATE: @@ -27,4 +32,5 @@ fileHandler.rotateScheme enum {DATE, SEQUENCE} default=DATE fileHandler.symlink string default="" # compress the previous access log after rotation +# TODO change to "true" for Vespa 7 fileHandler.compressOnRotation bool default=false |