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

(cherry picked from commit 94fe58a)
  • Loading branch information
andrewkroh committed Jul 3, 2018
1 parent 597c264 commit 0388666
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ https://github.com/elastic/beats/compare/v6.3.0...6.3[Check the HEAD diff]

*Affecting all Beats*

- 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*

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

0 comments on commit 0388666

Please sign in to comment.