mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
* fix(NA): increase log rotation minimum log filesize to rotate limit * chore(NA): correct interval * docs(NA): add comments to explain everyBytes limits
This commit is contained in:
parent
63c024493f
commit
98adaee778
2 changed files with 6 additions and 2 deletions
|
@ -171,7 +171,7 @@ that feature would not take any effect.
|
|||
|
||||
`logging.rotate.everyBytes:`:: [experimental] *Default: 10485760* The maximum size of a log file (that is `not an exact` limit). After the
|
||||
limit is reached, a new log file is generated. The default size limit is 10485760 (10 MB) and
|
||||
this option should be at least greater than 1024.
|
||||
this option should be in the range of 102400 (100KB) to 1073741824 (1GB).
|
||||
|
||||
`logging.rotate.keepFiles:`:: [experimental] *Default: 7* The number of most recent rotated log files to keep
|
||||
on disk. Older files are deleted during log rotation. The default value is 7. The `logging.rotate.keepFiles`
|
||||
|
|
|
@ -144,7 +144,11 @@ export default () =>
|
|||
.keys({
|
||||
enabled: Joi.boolean().default(false),
|
||||
everyBytes: Joi.number()
|
||||
.greater(1024)
|
||||
// > 100KB
|
||||
.greater(102399)
|
||||
// < 1GB
|
||||
.less(1073741825)
|
||||
// 10MB
|
||||
.default(10485760),
|
||||
keepFiles: Joi.number()
|
||||
.greater(2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue