-
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
Include date separator in the filename prefix of dateRotator
to make sure nothing gets purged accidentally
#26176
Conversation
6fa9d32
to
363df47
Compare
❕ Build Aborted
Expand to view the summary
Build stats
Trends 🧪Log outputExpand to view the last 100 lines of log output
|
dateRotator
to make sure nothing gets purged accidentally
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and fixes issue with disappearing binaries
Pinging @elastic/agent (Team:Agent) |
…e sure nothing gets purged accidentally (#26176) ## What does this PR do? This PR changes the log file prefix when using date rotation in Beats. Previously the `-` was not included, so in the list of rotated files every file that started with the configured file prefix were included. ## Why is it important? If the binary is under the same path as the value configured in `logging.files.path` and `logging.files.name`, when the number of rotated log files gets bigger than the one configured in `loggin.files.keepfiles`, the binary is purged on rotation. The workaround is to put the log files in a separate folder. (cherry picked from commit 447bac9)
…e sure nothing gets purged accidentally (#26176) ## What does this PR do? This PR changes the log file prefix when using date rotation in Beats. Previously the `-` was not included, so in the list of rotated files every file that started with the configured file prefix were included. ## Why is it important? If the binary is under the same path as the value configured in `logging.files.path` and `logging.files.name`, when the number of rotated log files gets bigger than the one configured in `loggin.files.keepfiles`, the binary is purged on rotation. The workaround is to put the log files in a separate folder. (cherry picked from commit 447bac9)
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
Trends 🧪💚 Flaky test reportTests succeeded. Expand to view the summary
Test stats 🧪
|
…e sure nothing gets purged accidentally (#26176) ## What does this PR do? This PR changes the log file prefix when using date rotation in Beats. Previously the `-` was not included, so in the list of rotated files every file that started with the configured file prefix were included. ## Why is it important? If the binary is under the same path as the value configured in `logging.files.path` and `logging.files.name`, when the number of rotated log files gets bigger than the one configured in `loggin.files.keepfiles`, the binary is purged on rotation. The workaround is to put the log files in a separate folder. (cherry picked from commit 447bac9)
…e sure nothing gets purged accidentally (#26176) ## What does this PR do? This PR changes the log file prefix when using date rotation in Beats. Previously the `-` was not included, so in the list of rotated files every file that started with the configured file prefix were included. ## Why is it important? If the binary is under the same path as the value configured in `logging.files.path` and `logging.files.name`, when the number of rotated log files gets bigger than the one configured in `loggin.files.keepfiles`, the binary is purged on rotation. The workaround is to put the log files in a separate folder. (cherry picked from commit 447bac9)
…e sure nothing gets purged accidentally (#26176) (#26179) ## What does this PR do? This PR changes the log file prefix when using date rotation in Beats. Previously the `-` was not included, so in the list of rotated files every file that started with the configured file prefix were included. ## Why is it important? If the binary is under the same path as the value configured in `logging.files.path` and `logging.files.name`, when the number of rotated log files gets bigger than the one configured in `loggin.files.keepfiles`, the binary is purged on rotation. The workaround is to put the log files in a separate folder. (cherry picked from commit 447bac9) Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
…e sure nothing gets purged accidentally (#26176) (#26178) ## What does this PR do? This PR changes the log file prefix when using date rotation in Beats. Previously the `-` was not included, so in the list of rotated files every file that started with the configured file prefix were included. ## Why is it important? If the binary is under the same path as the value configured in `logging.files.path` and `logging.files.name`, when the number of rotated log files gets bigger than the one configured in `loggin.files.keepfiles`, the binary is purged on rotation. The workaround is to put the log files in a separate folder. (cherry picked from commit 447bac9) Co-authored-by: Noémi Ványi <kvch@users.noreply.github.com>
What does this PR do?
This PR changes the log file prefix when using date rotation in Beats. Previously the
-
was not included, so in the list of rotated files every file that started with the configured file prefix were included.Why is it important?
If the binary is under the same path as the value configured in
logging.files.path
andlogging.files.name
, when the number of rotated log files gets bigger than the one configured inloggin.files.keepfiles
, the binary is purged on rotation.The workaround is to put the log files in a separate folder.
Checklist
- [ ] I have commented my code, particularly in hard-to-understand areas- [ ] I have made corresponding changes to the documentation- [ ] I have made corresponding change to the default configuration files- [ ] I have added tests that prove my fix is effective or that my feature worksCHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.