if you mean /etc/asterisk/logger.conf then no, thats a config-file, no point deleting that one
You can add this to crontab to delete 2 days old logs every night at 00:28 & 00:29
- Code: Select all
### remove old vicidial logs and asterisk logs more than 2 days old
28 0 * * * /usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
29 0 * * * /usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
this works if you have logrotate running.dont you have anything that deletes old logs in your system now?