CentOS doesn’t default to compressing logs

At first I was thinking there had to be a bug in the Apache logrotate script in CentOS 6.4, then I noticed they’ve by default disabled compression of all logs .

$ grep compress /etc/logrotate.conf 
# uncomment this if you want your log files compressed
#compress
$ 

2 comments on “CentOS doesn’t default to compressing logs

  1. Daniel Aleksandersen October 16, 2013 1:27 pm

    I can see why they would do it: disk space is no longer a concern for the majority of users. Making logs just a fraction more difficult to parse may have — to whoever made the decision — outweigh the benefit of compressing them.

    • Joar Jegleim October 16, 2013 11:09 pm

      Yeah, I see your point. Problem is when web app X suddenly log like crazy ( DOS attempt or simply a bug). Compressing logs isn’t the solution, but it may buy you some time. Unexpected things tend to happen in the weekends :p

Leave a Reply to Joar Jegleim Cancel Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This site uses Akismet to reduce spam. Learn how your comment data is processed.