UNCLASSIFIED - NO CUI

Skip to content

fix: allow logging containers to follow rotated log files

Heming Gu requested to merge follow-rotated-logs into main

The default log handlers for request.log and audit.log use a rotating file handler, allowing for automatic rotation of those log files. The additional containers provided as examples in the values.yaml are set up to follow these log files; however, they will not detect when a log file has been rotated, and will instead continue tracking the rotated file inode. This results in log lines not being sent to the log stream. This change resolves this issue by providing the -F flag to tail, which checks for changes to the inode backing a particular file, and thus can tell when log files have been rotated.

Merge request reports