Skip to content

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Jan 20, 2026

Summary

  • Adds cleanup for proxy log files (coder-ssh-*.log) in the proxy log directory
  • Only triggers when file count exceeds 20 AND oldest files are more than 7 days old
  • Deletes oldest stale files (by mtime) to bring count back to 20
  • Runs on monitor start alongside existing network info file cleanup

Fixed #377

@EhabY EhabY self-assigned this Jan 20, 2026
Clean up old coder-ssh-*.log files when count exceeds 20 and files are
older than 7 days. Uses mtime-based sorting to delete oldest stale files first.
@EhabY EhabY force-pushed the cleanup-old-log-files branch from 25684d1 to 128754a Compare January 20, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

coder.coder-remote/log can grow quite large

1 participant