Shawn Maddock
04/30/2026, 4:47 PMlogrotate but want to make sure I'm doing it in a way that won't result in data loss. Whatever threshold is built in is much too slow.Unthread
04/30/2026, 5:14 PMShawn Maddock
04/30/2026, 5:17 PMfilesystem_max_age days before deletion.Unthread
04/30/2026, 5:20 PMShawn Maddock
04/30/2026, 5:29 PM1 and that's not what happened. All results older than a day were purged.Shawn Maddock
04/30/2026, 5:36 PMMaxAge is the maximum number of days to retain old log files based on the timestamp encoded in their filename. Note that a day is defined as 24 hours and may not exactly correspond to calendar days due to daylight savings, leap seconds, etc. The default is not to remove old log files based on age.
Shawn Maddock
04/30/2026, 5:36 PMSIGHUP signal to Fleet if enableRotation is true
https://github.com/fleetdm/fleet/blob/56a8bc03a86040fbc033213d9a481d3dcc8f0677/server/logging/filesystem.go#L27-L28Mason Buettner
04/30/2026, 5:54 PMShawn Maddock
04/30/2026, 5:55 PMMason Buettner
04/30/2026, 6:05 PMShawn Maddock
04/30/2026, 6:06 PMShawn Maddock
04/30/2026, 6:08 PMrsync any rotated logs, but that would require frequent file rotation.Mason Buettner
04/30/2026, 6:26 PM