# Voicemail Transcription Logs

**URL:** <https://forums.vitalpbx.org/t/voicemail-transcription-logs/5688>\
**Category:** Reporting an Issue\
**Created:** [September 1, 2025, 11:31am UTC](https://forums.vitalpbx.org/t/voicemail-transcription-logs/5688 "2025-09-01T11:31:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PitzKey](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/pitzkey/32/420_2.png) [@PitzKey](https://forums.vitalpbx.org/u/PitzKey)\
**Post date:** [September 1, 2025, 11:31am UTC](https://forums.vitalpbx.org/t/voicemail-transcription-logs/5688/1 "2025-09-01T11:31:57Z")

</div>

Hello,

### The issue

It seems like the logs are not deleted…

```auto
root@trailer:~# ls -la /var/log/asterisk/ | grep voicemail | wc -l
299
.
.
.
root@trailer:~# ls -la /var/log/asterisk/ | grep voicemail | tail -7
-rw-rw-r-- 1 asterisk asterisk 619 Aug 22 08:48 voicemail2email_2025_08_22.log
-rw-rw-r-- 1 asterisk asterisk 866 Aug 25 13:27 voicemail2email_2025_08_25.log
-rw-rw-r-- 1 asterisk asterisk 334 Aug 26 16:28 voicemail2email_2025_08_26.log
-rw-rw-r-- 1 asterisk asterisk 2573 Aug 27 16:47 voicemail2email_2025_08_27.log
-rw-rw-r-- 1 asterisk asterisk 374 Aug 28 15:23 voicemail2email_2025_08_28.log
-rw-rw-r-- 1 asterisk asterisk 1555 Aug 29 16:28 voicemail2email_2025_08_29.log
-rw-rw-r-- 1 asterisk asterisk 206 Sep 1 07:22 voicemail2email_2025_09_01.log

```

### The Problem

As you can see, the transcription script creates a new log file every day with the current date, which makes it impossible to get it into `logrotate`.

### Suggestion

Change that it should log to `/var/log/asterisk/voicemail2email` and then update `/etc/logrotate.d/asterisk-pbx` to something like this:

```auto
/var/log/asterisk/messages
/var/log/asterisk/event_log
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/voicemail2email
/var/log/asterisk/fail2ban {
    daily
    rotate 7
    missingok
    notifempty
    sharedscripts
    dateformat -%Y%m%d
    create 0640 asterisk asterisk
    su asterisk asterisk
    postrotate
        /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
    endscript
}

```

---

<div class="post-metadata">

**Author:** ![ari](https://forums.vitalpbx.org/user_avatar/forums.vitalpbx.org/ari/32/2636_2.png) [@ari](https://forums.vitalpbx.org/u/ari)\
**Post date:** [November 24, 2025, 5:17pm UTC](https://forums.vitalpbx.org/t/voicemail-transcription-logs/5688/2 "2025-11-24T17:17:01Z")

</div>

We have been having the same issue with voicemail log files since Sep.
