[Asterisk-Users] asterisk logger - urgent!!!
Tzafrir Cohen
tzafrir at cohens.org.il
Thu Feb 9 08:40:02 MST 2006
On Thu, Feb 09, 2006 at 11:56:02AM -0200, Dov Bigio wrote:
> Hi Tzafrir,
>
> The problem was the file Master.csv that had reached 2.0GB.
> I am writing a cron script to backup this file periodically and prevent this
> from happening.
>
> Any way, if any developers are reading this, I don't think that rotating
> asterisk logs is the best way to handle this problem!
> Maybe a more user-friendly message could be logged, infoming which file
> reached the 2.0GB.
This should be the job of the log rotate script. Limit its size to 1 GB
and rotate it weekly. see logrotate.conf(5) . Part of just about any linux
distro. Normally run in the daily cron.
>
> About your question, yes I do, for log files. Is "logger rotate" could also
> after I delete csv files?
Anybody?
--
Tzafrir Cohen | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il | | a Mutt's
tzafrir at cohens.org.il | | best
ICQ# 16849755 | | friend
More information about the asterisk-users
mailing list