Symptoms

When reviewing the contents of logs collected on the local computer, recent log files are deleted when the collection of files approaches the maximum local disk usage instead of the oldest files.  This tends to make recent information never available while old information is preserved until it ages out.

Cause

When it detects that the local disk space limit has been exceeded the Agent first prunes files by age.  If the disk space limit is still being exceeded then it should delete the oldest, sent files first.  Instead, the agent sorted the list backwards and consistently deleted the youngest files.  This issue was introduced in 3.5 due to performance optimizations in the file management process.

Resolution

This has been corrected in version 3.7.4 of the Loupe Agent.