Skip to content

Commit

Permalink
Set logp default for keepfiles to 7
Browse files Browse the repository at this point in the history
The config files and docs state that the default number of backups to keep is 7. This default value in the code was lost during the logging refactor.

Fixes elastic#7494
  • Loading branch information
andrewkroh authored and adriansr committed Jul 3, 2018
1 parent 4a68a0c commit 4389d7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ https://github.com/elastic/beats/compare/v6.2.3...master[Check the HEAD diff]
- Fix duplicating dynamic_fields in template when overwriting the template. {pull}7352[7352]
- Fix a panic on the Dissect processor when we have data remaining after the last delimiter. {pull}7449[7449]
- When we fail to build a Kubernetes' indexer or matcher we produce a warning but we don't add them to the execution. {pull}7466[7466]
- Fix default value for logging.files.keepfiles. It was being set to 0 and now
it's set to the documented value of 7. {issue}7494[7494]

*Auditbeat*

Expand Down
1 change: 1 addition & 0 deletions libbeat/logp/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ var defaultConfig = Config{
ToFiles: true,
Files: FileConfig{
MaxSize: 10 * 1024 * 1024,
MaxBackups: 7,
Permissions: 0600,
},
addCaller: true,
Expand Down

0 comments on commit 4389d7b

Please sign in to comment.