Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a couple of .log.#.gz files. (the # is a number) For example i have a ufw.log, a ufw.log.1.gz...all the way to ufw.log.4.gz. Are these .log.#.gz files old log files that got compressed? What daemon manages this (logrotate?) Is .gz that good?( i am asking this because ufw.4.log.gz is 98 megs while the ufw.log is 3.2 gb)

share|improve this question
up vote 0 down vote accepted

Yes, ..X.gz files are compressed log files from previous periods, and are controlled using logrotate. [ You can check out the settings in /etc/logrotate.d/ ]

.gz is good at compressing text - in the same order of magnitude as "zip". I suspect that a lot of what is in your log files are being repeated multiple times, making it very compressible.

share|improve this answer

A .gz file is normally created by gzip ( It's possible these are compressed log files, especially considering the similarity in file names with the uncompressed file. Perhaps the simplest way is to try to decompress one of the files and see what's in it.

This question discusses the compression ratio of gzip. The compression you see is possible, though it is pretty high.

This site suggests the log may be an audit log.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.