Log file delete mannually
How can I delete dialer all log file manually... Not with any automatic script . I want to delete log file manually ( logging in to dialer cent os ) after checking that. Can anyone help me with that...???
RE: Log file delete mannually - Added by Wilper Necesario over 1 year ago
You can use crontab and basic command for you be able to delete the logs in centos. What logs you want to delete.?
If you are asking for GoAutodial/vicidial there is a default automatic delete of logs in the crontab.
To view the crontab list run #crontab -l
To Edit the crontab run #crontab -e
- 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
30 0 * * * /usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f