More Logs, Less Space

GEEKS !!

If you still remember the basics of /etc/logrotate.conf file which you have learned in your Red Hat Linux Training or RHCE Training, then you must be knowing that by default the logs are rotated on monthly basis.

But in case you want to store more logs, say for a year, in my example. But you also want to limit the hard disk space usage.

So here is a small modification that you can do in /etc/logrotate.conf to do the job.

Below is the illustrated example from my machine.

Storing more logs in Linux

Storing more logs in Linux

Advertisements