You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tom Willemsen edited this page Jul 18, 2024
·
18 revisions
Automated log rotation
IBEX logs are rotated by a script called logrotate.py in C:\instrument\apps\epics\utils\logrotate.py. This script is called nightly by a windows scheduled task.
Currently, for all files not modified within the last 10 days, it:
Deletes them if they are console logs
Moves them to stage-deleted otherwise
The scheduled task is added/recreated as an install step in ibex_utils under server_tasks.
A nagios check will use the same script, but in dry-run mode and with a cutoff of 14 days, to notify us if the log rotation stops working.