On 29/Jul/2005 05:19 Colm Dougan wrote ..
> Hi,
>
> Just wondering if there was any parameter to limit the max logfile
> size for webmin (miniser.pl) access logs. I really only want maybe
> the last (say) 1000 lines to remian in the logfile at any one time.
> Disk space is very limited. Is there any straightforward way to do
> this or do I need to have something else rotate the logs?
Your best bet would be to configured logrotate to operate on /var/webmin/miniserv.log ,
and to truncate them after they reach some max size, like 1MB. If you do set this
up, make sure logrotate runs /etc/webmin/stop ; /etc/webmin/start after rotating
the logs..
- Jamie
|