Splitting Large Log Files

Every so often you run into a log file that doesn’t have a log rotation set up and has grown so large that it is near impossible to open in many editors. Today I ran into one of those files that was 1.5GB. Thankfully there is a handy split utility that can generate chunked text files quickly.

split -b 500m huge-log.log

Leave a Reply

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