How to Split Linux Log Files by Day or Month @ OCModShop

Posted on Tuesday, August 21 2012 @ 11:35 CEST by Thomas De Maesschalck
OCModShop learns you how to split Linux log files by day or month using the grep command, you can read the howto at this page.
Unless your admins took the extra care to automatically separate your log files by date, then you may have noticed one huge-ass log file in your web page's directory... especially if it isn't compressed.

In my case I had an 11.3GB log file sitting in my home directory, and I really needed to split it up into smaller files.

There's a very easy way to do this with the Linux command line.


About the Author

Thomas De Maesschalck

Thomas has been messing with computer since early childhood and firmly believes the Internet is the best thing since sliced bread. Enjoys playing with new tech, is fascinated by science, and passionate about financial markets. When not behind a computer, he can be found with running shoes on or lifting heavy weights in the weight room.



Loading Comments