cat & compressed files

glitchlist Uncategorized Leave a Comment

In a NOC/SOC environment you have to frequently deal with gigantic log files. These huge logs (composed of simple text lines), if compressed, can be reduced up to 10 times their size, so we will find them on our syslog in compressed formats (zip, gz, tar). When you need to do troubleshooting it is unthinkable to have to unzip all the files necessary for a complete debug. Disk space may run out… In our help there is a beautiful tool: zcat.

zcat fw-glitchlist.log-20200110.gz |grep 'somethings' |grep 'somethings2'

It allows you to perform a normal cat inside a compressed file without decompressing it. fantastic!

.glitchlist crew

Leave a Reply

Your email address will not be published. Required fields are marked *