MichaelBalack
asked on
Found asterisk log files growing big very fast and hard disk no more, how?
This is using Linux server. There are 40 GB hard disk space allocated for /. However, found that in /var/log/asterisk, the log file - messages, grows very fast; and within a week or 2, all disk space used up and consequencely, the application stops working. Is there a way to "rotate" the log file, let's say a new log file create if the log hits 500 mb or so?
Appreciate your help, thanks!
Appreciate your help, thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It works
Yes, Linux offers a utility to handle the log files. It will automatically create the new log file if log hits to the threshold that you have set on it
/var/log/asterisk/cdr-csv/
weekly
missingok
rotate 9
size 512000k
copytruncate
endscript
}
Refer the following link in case if you feeling any difficulty
http://www.voip-info.org/wiki/view/logrotate