-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix file audit log rotation, fixes #2388
This commit improves on-disk events log rotation: * Previously, log rotation was not deterministic, as logs could be rotated mid-day UTC, and events from the same day could end up in different files. This commit makes sure that logs are rotated on the UTC boundary of the day, and log entries from this day are located in the appropriate file, e.g. 2019-02-09.00:00:00.log will contain all event logs from 2019-02-09 day. * To improve UX, additional symlink event.log is located (by default in /var/lib/teleport/events.log) and is pointing to the latest events log file.
- Loading branch information
1 parent
bf6bcd5
commit 20cae15
Showing
3 changed files
with
105 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters