log storage

Gregory Woodbury ggw at wolves.durham.nc.us
Wed Jan 21 17:55:32 UTC 2004


On Wed, Jan 21, 2004 at 12:24:22PM -0500, Genti A. Hila wrote:
> Hi list,
> 
> I want to use a Fedora box as storage server for PIX logging, because I want to keep track of them and analyze.
> Now I want to keep the logs for one month. And once each directory or file is older than 30 days, I want it to be deleted. So each day, some files are deleted.
> At the same time. because this logs are huge, it might happen that HDD fills up. In order to prevent this from happening, I would like to set a certain size for the logs. If this fills up, than the older logs are automatically deleted even though they are not yet 30 days old.
> 
> Does any body, has a suggestion how to do this ? What tool to use, or maybe some link that has more information on that.
> I do not mind reading but I just do not know where to start.

man logrotate

Logrotate gives fairly fine-grained control over any and all logfiles
that you care to write definitions for.

-- 
Gregory G. "Wolfe" Woodbury      `-_-'    Owner/Admin: wolves.durham.nc.us
ggw at wolves.durham.nc.us         U     RHCT August 2003
"The Line Eater is a boojum snark."     Hug your wolf.





More information about the fedora-list mailing list