-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect default for Filebeat logging.files.keepfiles #7494
Labels
Comments
Looks like we need to add https://github.com/elastic/beats/blob/v6.3.0/libbeat/logp/config.go#L36-L39 |
andrewkroh
added
the
good first issue
Indicates a good issue for first-time contributors
label
Jul 3, 2018
andrewkroh
added a commit
to andrewkroh/beats
that referenced
this issue
Jul 3, 2018
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
adriansr
pushed a commit
that referenced
this issue
Jul 3, 2018
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 #7494
andrewkroh
added a commit
to andrewkroh/beats
that referenced
this issue
Jul 3, 2018
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)
ruflin
pushed a commit
that referenced
this issue
Jul 4, 2018
leweafan
pushed a commit
to leweafan/beats
that referenced
this issue
Apr 28, 2023
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 4389d7b)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
The documented default for Filebeat's
logging.files.keepfiles
is 7, but in my testing this doesn't seem to be accurate. The actual default seems to be 0, meaning Filebeat doesn't keep any rotated log files./etc/filebeat/filebeat.yml
does not define any value forlogging.files.keepfiles
.service filebeat start
./var/log/filebeat/filebeat
.service filebeat restart
, triggering a log rotate./var/log/filebeat
.logging.files.keepfiles: 7
in/etc/filebeat/filebeat.yml
.service filebeat restart
, triggering another log rotate./var/log/filebeat/filebeat.1
.The text was updated successfully, but these errors were encountered: