Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include date separator in the filename prefix of
dateRotator
to mak…
…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>
- Loading branch information