Reducing var/log/ size

Hi, I’m sorry I have yet another newbie question.

These files on /var/log/ are far bigger than the rest:
? 329M secure.1
? 392M secure.2
? 91M secure.3
? 80M secure.4
? 86M btmp

Is there a way to either reduce or limit their size?

Judging by the .1 and .2 files, you already have logrotate installed.
So I’d suggest configuring it to gzip each file after rotating.
Uncomment line 12 in the default (for RHEL/CentOS anyway) /etc/logrotate.conf, like this:

# uncomment this if you want your log files compressed

You can also change how often the files are rotated; both for individual files and/or as a global setting. More often would lead to smaller files :slight_smile:

Fr3d, thank you so much for your help. That’s exactly what I was looking for :slight_smile: