Log Policy
2026-11-08 17:40:24

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-10-24 02:00:01 INFO   removed=0 errors=0
2026-10-24 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-10-24 02:00:01 INFO   removed=0 errors=0
2026-10-24 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-10-25 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-09-25
2026-10-25 02:00:01 INFO Scanning: /var/log/ivr
2026-10-25 02:00:01 INFO   removed=0 errors=0
2026-10-25 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-10-25 02:00:01 INFO   removed=0 errors=0
2026-10-25 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-10-26 02:00:02 INFO Cleanup start — retention=30 days, cutoff=2026-09-26
2026-10-26 02:00:02 INFO Scanning: /var/log/ivr
2026-10-26 02:00:02 INFO   removed=0 errors=0
2026-10-26 02:00:02 INFO Scanning: /usr/share/freeswitch/stt
2026-10-26 02:00:02 INFO   removed=0 errors=0
2026-10-26 02:00:02 INFO Cleanup done — total removed=0 errors=0
2026-10-27 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-09-27
2026-10-27 02:00:01 INFO Scanning: /var/log/ivr
2026-10-27 02:00:02 INFO   removed=0 errors=0
2026-10-27 02:00:02 INFO Scanning: /usr/share/freeswitch/stt
2026-10-27 02:00:02 INFO   removed=0 errors=0
2026-10-27 02:00:02 INFO Cleanup done — total removed=0 errors=0
2026-10-28 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-09-28
2026-10-28 02:00:01 INFO Scanning: /var/log/ivr
2026-10-28 02:00:01 INFO   removed=0 errors=0
2026-10-28 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-10-28 02:00:01 INFO   removed=0 errors=0
2026-10-28 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-10-29 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-09-29
2026-10-29 02:00:01 INFO Scanning: /var/log/ivr
2026-10-29 02:00:01 INFO   removed=0 errors=0
2026-10-29 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-10-29 02:00:01 INFO   removed=0 errors=0
2026-10-29 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-10-30 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-09-30
2026-10-30 02:00:01 INFO Scanning: /var/log/ivr
2026-10-30 02:00:01 INFO Removed: /var/log/ivr/SGO/260930
2026-10-30 02:00:01 INFO Removed: /var/log/ivr/MCD/260930
2026-10-30 02:00:01 INFO   removed=2 errors=0
2026-10-30 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-10-30 02:00:01 INFO Removed: /usr/share/freeswitch/stt/sgo/260930
2026-10-30 02:00:01 INFO Removed: /usr/share/freeswitch/stt/mcd/260930
2026-10-30 02:00:01 INFO   removed=2 errors=0
2026-10-30 02:00:01 INFO Cleanup done — total removed=4 errors=0
2026-10-31 02:00:02 INFO Cleanup start — retention=30 days, cutoff=2026-10-01
2026-10-31 02:00:02 INFO Scanning: /var/log/ivr
2026-10-31 02:00:02 INFO Removed: /var/log/ivr/MCD/261001
2026-10-31 02:00:02 INFO   removed=1 errors=0
2026-10-31 02:00:02 INFO Scanning: /usr/share/freeswitch/stt
2026-10-31 02:00:02 INFO Removed: /usr/share/freeswitch/stt/mcd/261001
2026-10-31 02:00:02 INFO   removed=1 errors=0
2026-10-31 02:00:02 INFO Cleanup done — total removed=2 errors=0
2026-11-01 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-02
2026-11-01 02:00:01 INFO Scanning: /var/log/ivr
2026-11-01 02:00:01 INFO   removed=0 errors=0
2026-11-01 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-01 02:00:01 INFO   removed=0 errors=0
2026-11-01 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-02 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-03
2026-11-02 02:00:01 INFO Scanning: /var/log/ivr
2026-11-02 02:00:01 INFO   removed=0 errors=0
2026-11-02 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-02 02:00:01 INFO   removed=0 errors=0
2026-11-02 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-03 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-04
2026-11-03 02:00:01 INFO Scanning: /var/log/ivr
2026-11-03 02:00:01 INFO   removed=0 errors=0
2026-11-03 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-03 02:00:01 INFO   removed=0 errors=0
2026-11-03 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-04 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-05
2026-11-04 02:00:01 INFO Scanning: /var/log/ivr
2026-11-04 02:00:01 INFO   removed=0 errors=0
2026-11-04 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-04 02:00:01 INFO   removed=0 errors=0
2026-11-04 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-05 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-06
2026-11-05 02:00:01 INFO Scanning: /var/log/ivr
2026-11-05 02:00:01 INFO   removed=0 errors=0
2026-11-05 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-05 02:00:01 INFO   removed=0 errors=0
2026-11-05 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-06 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-07
2026-11-06 02:00:01 INFO Scanning: /var/log/ivr
2026-11-06 02:00:01 INFO   removed=0 errors=0
2026-11-06 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-06 02:00:01 INFO   removed=0 errors=0
2026-11-06 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-07 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-08
2026-11-07 02:00:01 INFO Scanning: /var/log/ivr
2026-11-07 02:00:01 INFO   removed=0 errors=0
2026-11-07 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-07 02:00:01 INFO   removed=0 errors=0
2026-11-07 02:00:01 INFO Cleanup done — total removed=0 errors=0
2026-11-08 02:00:01 INFO Cleanup start — retention=30 days, cutoff=2026-10-09
2026-11-08 02:00:01 INFO Scanning: /var/log/ivr
2026-11-08 02:00:01 INFO   removed=0 errors=0
2026-11-08 02:00:01 INFO Scanning: /usr/share/freeswitch/stt
2026-11-08 02:00:01 INFO   removed=0 errors=0
2026-11-08 02:00:01 INFO Cleanup done — total removed=0 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  2026 rkunter-check