Log Policy
2026-09-28 11:07:56

Active Cleanups & Cron Jobs

How frequent the system executes cleanup policies.
0 2 * * * /usr/bin/python3 /usr/share/freeswitch/scripts/cleanup_ivr_logs.py >> /var/log/ivr_cleanup.log 2>&1
Retention rule: Scans /var/log/ivr and /var/stt daily at 02:00 AM to delete data older than 10 days.

OS Logrotate Settings

Global and service rotation configurations.
# see "man logrotate" for details
# rotate log files weekly
weekly
rotate 4
# use date as a suffix of the rotated file
# uncomment this if you want your log files compressed
#compress
include /etc/logrotate.d
/var/log/alternatives.log {
	rotate 12
	compress
	delaycompress
/var/log/apt/term.log {
  rotate 12
  compress
/var/log/apt/history.log {
  rotate 12
  compress
# no packages own btmp -- we'll rotate it here
/var/log/btmp {
    rotate 1
/var/log/letsencrypt/*.log {
    rotate 12
    weekly
    compress
}/var/log/dpkg.log {
	rotate 12
	compress
	delaycompress
/var/log/exim4/mainlog /var/log/exim4/rejectlog {
	daily
	rotate 10
	compress
	delaycompress
/var/log/exim4/paniclog {
	size 10M
	rotate 10
	compress
	delaycompress
/var/log/fail2ban.log {
Frequency: Standard system log files are rotated daily or weekly using /etc/cron.daily/logrotate.

Last Execution Log

Stdout/stderr output of the last cron execution (/var/log/ivr_cleanup.log).
2026-09-15 02:00:01 INFO   removed=1 errors=0
2026-09-15 02:00:01 INFO Scanning: /var/stt
2026-09-15 02:00:01 INFO   removed=0 errors=0
2026-09-15 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-16 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-06
2026-09-16 02:00:01 INFO Scanning: /var/log/ivr
2026-09-16 02:00:01 INFO Removed: /var/log/ivr/MCD/260906
2026-09-16 02:00:01 INFO   removed=1 errors=0
2026-09-16 02:00:01 INFO Scanning: /var/stt
2026-09-16 02:00:01 INFO   removed=0 errors=0
2026-09-16 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-17 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-07
2026-09-17 02:00:01 INFO Scanning: /var/log/ivr
2026-09-17 02:00:01 INFO Removed: /var/log/ivr/MCD/260907
2026-09-17 02:00:01 INFO   removed=1 errors=0
2026-09-17 02:00:01 INFO Scanning: /var/stt
2026-09-17 02:00:01 INFO   removed=0 errors=0
2026-09-17 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-18 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-08
2026-09-18 02:00:01 INFO Scanning: /var/log/ivr
2026-09-18 02:00:02 INFO Removed: /var/log/ivr/MCD/260908
2026-09-18 02:00:02 INFO   removed=1 errors=0
2026-09-18 02:00:02 INFO Scanning: /var/stt
2026-09-18 02:00:02 INFO   removed=0 errors=0
2026-09-18 02:00:02 INFO Cleanup done — total removed=1 errors=0
2026-09-19 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-09
2026-09-19 02:00:01 INFO Scanning: /var/log/ivr
2026-09-19 02:00:01 INFO Removed: /var/log/ivr/SGO/260909
2026-09-19 02:00:01 INFO   removed=1 errors=0
2026-09-19 02:00:01 INFO Scanning: /var/stt
2026-09-19 02:00:01 INFO   removed=0 errors=0
2026-09-19 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-20 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-10
2026-09-20 02:00:01 INFO Scanning: /var/log/ivr
2026-09-20 02:00:01 INFO Removed: /var/log/ivr/SGO/260910
2026-09-20 02:00:01 INFO   removed=1 errors=0
2026-09-20 02:00:01 INFO Scanning: /var/stt
2026-09-20 02:00:01 INFO   removed=0 errors=0
2026-09-20 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-21 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-11
2026-09-21 02:00:01 INFO Scanning: /var/log/ivr
2026-09-21 02:00:01 INFO Removed: /var/log/ivr/SGO/260911
2026-09-21 02:00:01 INFO   removed=1 errors=0
2026-09-21 02:00:01 INFO Scanning: /var/stt
2026-09-21 02:00:01 INFO   removed=0 errors=0
2026-09-21 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-22 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-12
2026-09-22 02:00:01 INFO Scanning: /var/log/ivr
2026-09-22 02:00:01 INFO Removed: /var/log/ivr/SGO/260912
2026-09-22 02:00:01 INFO Removed: /var/log/ivr/MCD/260912
2026-09-22 02:00:01 INFO   removed=2 errors=0
2026-09-22 02:00:01 INFO Scanning: /var/stt
2026-09-22 02:00:01 INFO   removed=0 errors=0
2026-09-22 02:00:01 INFO Cleanup done — total removed=2 errors=0
2026-09-23 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-13
2026-09-23 02:00:01 INFO Scanning: /var/log/ivr
2026-09-23 02:00:01 INFO Removed: /var/log/ivr/SGO/260913
2026-09-23 02:00:01 INFO Removed: /var/log/ivr/MCD/260913
2026-09-23 02:00:01 INFO   removed=2 errors=0
2026-09-23 02:00:01 INFO Scanning: /var/stt
2026-09-23 02:00:01 INFO   removed=0 errors=0
2026-09-23 02:00:01 INFO Cleanup done — total removed=2 errors=0
2026-09-24 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-14
2026-09-24 02:00:01 INFO Scanning: /var/log/ivr
2026-09-24 02:00:01 INFO Removed: /var/log/ivr/MERLION/260914
2026-09-24 02:00:01 INFO Removed: /var/log/ivr/SGO/260914
2026-09-24 02:00:01 INFO Removed: /var/log/ivr/AFFINITY/260914
2026-09-24 02:00:01 INFO Removed: /var/log/ivr/MCD/260914
2026-09-24 02:00:01 INFO   removed=4 errors=0
2026-09-24 02:00:01 INFO Scanning: /var/stt
2026-09-24 02:00:01 INFO   removed=0 errors=0
2026-09-24 02:00:01 INFO Cleanup done — total removed=4 errors=0
2026-09-25 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-15
2026-09-25 02:00:01 INFO Scanning: /var/log/ivr
2026-09-25 02:00:01 INFO   removed=0 errors=0
2026-09-25 02:00:01 INFO Scanning: /var/stt
2026-09-25 02:00:01 INFO   removed=0 errors=0
2026-09-25 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-09-26 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-16
2026-09-26 02:00:01 INFO Scanning: /var/log/ivr
2026-09-26 02:00:01 INFO Removed: /var/log/ivr/MERLION/260916
2026-09-26 02:00:01 INFO   removed=1 errors=0
2026-09-26 02:00:01 INFO Scanning: /var/stt
2026-09-26 02:00:01 INFO   removed=0 errors=0
2026-09-26 02:00:01 INFO Cleanup done — total removed=1 errors=0
2026-09-27 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-17
2026-09-27 02:00:01 INFO Scanning: /var/log/ivr
2026-09-27 02:00:01 INFO Removed: /var/log/ivr/MERLION/260917
2026-09-27 02:00:01 INFO Removed: /var/log/ivr/SGO/260917
2026-09-27 02:00:01 INFO   removed=2 errors=0
2026-09-27 02:00:01 INFO Scanning: /var/stt
2026-09-27 02:00:01 INFO   removed=0 errors=0
2026-09-27 02:00:01 INFO Cleanup done — total removed=2 errors=0
2026-09-28 02:00:01 INFO Cleanup start — retention=10 days, cutoff=2026-09-18
2026-09-28 02:00:01 INFO Scanning: /var/log/ivr
2026-09-28 02:00:01 INFO Removed: /var/log/ivr/SGO/260918
2026-09-28 02:00:01 INFO   removed=1 errors=0
2026-09-28 02:00:01 INFO Scanning: /var/stt
2026-09-28 02:00:01 INFO   removed=0 errors=0
2026-09-28 02:00:01 INFO Cleanup done — total removed=1 errors=0

Cron directory contents

Hourly / daily cron jobs installed in OS environment.
total 32K
-rwxr-xr-x 1 root root  510 Aug 11  2025 aide
-rwxr-xr-x 1 root root 1.5K May 25  2023 apt-compat
-rwxr-xr-x 1 root root  123 Mar 27  2023 dpkg
-rwxr-xr-x 1 root root 4.7K Jun 17  2024 exim4-base
-rwxr-xr-x 1 root root  377 Dec 15  2022 logrotate
-rwxr-xr-x 1 root root 1.4K Mar 13  2023 man-db
-rwxr-xr-x 1 root root  169 Apr 24 16:27 rkunter-check