Log file "full" is missing

Well, I think there is a bigger issue here. I have a BLF issue which I wanted to debug, but I cam across the following:

[root@core1 asterisk]# ll | grep full
-rw-r-----  1 asterisk asterisk 179026358 Nov  3 08:39 full
-rw-r-----  1 asterisk asterisk    519324 Oct 18 03:36 full-20211018.gz
-rw-r-----  1 asterisk asterisk   1950311 Oct 19 03:26 full-20211019.gz
-rw-r-----  1 asterisk asterisk   2010605 Oct 20 03:19 full-20211020.gz
-rw-r-----  1 asterisk asterisk   1435285 Oct 21 03:11 full-20211021.gz
-rw-r-----  1 asterisk asterisk   1810378 Oct 22 03:42 full-20211022.gz
-rw-r-----  1 asterisk asterisk    949930 Oct 23 03:25 full-20211023.gz
-rw-r-----  1 asterisk asterisk    436909 Oct 24 03:44 full-20211024

It does not seem like log rotate is working in the latest version, as you can see, we updated on the 24th and since then all the logs are in the full file.

So I am looking at the /etc/logrotate.d/asterisk logrotate file, and indeed, things has changed.

Latest version of VitalPBX:

/var/log/asterisk/messages
/var/log/asterisk/event_log
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/fail2ban {
        daily
        rotate 2
        minsize 500M
        missingok
        compress
        delaycompress
        notifempty
        sharedscripts
        create 0640 asterisk asterisk
        su asterisk asterisk
        postrotate
                /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
        endscript
}

/var/spool/mail/asterisk {
    daily
    missingok
    rotate 2
    minsize 100M
    notifempty
    sharedscripts
    create 0660 asterisk mail
    su asterisk mail
}

/var/log/asterisk/queue_log {
    daily
    missingok
    rotate 30
    notifempty
    sharedscripts
    create 0640 asterisk asterisk
    su asterisk asterisk
    postrotate
                /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
    endscript
}

And the below if from a VitalPBX 3.1.1-1

/var/log/asterisk/messages
/var/log/asterisk/event_log
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/fail2ban {
        daily
        rotate 7
        missingok
        compress
        delaycompress
        notifempty
        sharedscripts
        create 0640 asterisk asterisk
        su asterisk asterisk
        postrotate
                /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
        endscript
}

/var/spool/mail/asterisk {
    daily
    missingok
    rotate 7
    notifempty
    sharedscripts
    create 0660 asterisk mail
    su asterisk mail
}

/var/log/asterisk/queue_log {
    daily
    missingok
    rotate 30
    notifempty
    sharedscripts
    create 0640 asterisk asterisk
    su asterisk asterisk
    postrotate
                /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
    endscript
}

@miguel as you can see, things are definetly different and the logs aren’t rotated every day

1 Like