concatenate compressed and uncompressed logs

2010-07-15 1 min read bash Fedora Linux
<span style="font-size: x-large;"><a href="">concatenate compressed and uncompressed logs $ find /var/log/apache2 -name 'access.loggz' -exec <a class="zem_slink freebase/guid/9202a8c04000641f800000000001abd9" title="Gzip" rel="homepage" href="">zcat {} ; -or -name 'access.log' -exec cat {} ; This command allows you to stream your log files, including gziped files, into one stream which can be piped to <a class="zem_slink freebase/guid/9202a8c04000641f800000000000584b" title="AWK" rel="homepage" href="">awk or some other command for analysis. Note: if your version of &#8217;find&#8217; supports it, use: Continue reading