Linux Compatible
  • News
    • Channels
    • Archive
    • Search
    • Submit
  • Articles
    • Categories
  • Knowledgebase
  • Compatibility
    • Search
  • Links
  • Forums
  • Twitter
Advertisement

Latest News
[ Windows | Linux | Apple ]

· Apple Seeds First OS X 10.8.5 Beta to Developers
· Microsoft will pay up to $100K for new Windows exploit techniques
· DSA 2711-1: haproxy security update
· System Builder Marathon, Q2 2013 and more
· Microsoft delivers biggest update to date to TypeScript
· Tiff/nss-pam-ldapd Updates for Debian
· Update for Windows 8/Server 2012
· Apple TV 5.4 beta adds iTunes Radio, Conference Room Display
· DSA 2710-1: xml-security-c security update
· Intel DZ87KLT-75K Kinsley Thunderbolt Motherboard Review

Upcoming News
· Thermaltake Urban S31 Chassis Review
· [RHSA-2013:0957-01] Critical: java-1.7.0-openjdk security update
· [RHSA-2013:0958-01] Important: java-1.7.0-openjdk security update
· Kingston HyperX Beast Black 16 GB 2133 C11 (2x8 GB) @ techPowerUp
· Canon PowerShot N Review @ TechReviewSource.com
· Gunpoint Review (PC)
· E3 2013: Wrap Up Coverage @ Legit Reviews
· Cougar Spike Micro ATX Case @ LanOC Reviews
· Logitech G400s Gaming Mouse Video Review with Dave Chaos @ HardwareHeaven.com
· Intel Core i7-4770K Haswell Processor Review @ ThinkComputers.org

Linux Compatibility
· Dell Dimension 9100
· CL-CAM50001 UPC=3700284609322
· DFE 520 TX
· nVidia GeForce4 MX 440
· Gore: Ultimate Soldier
· SMC2802W V2 wi-fi 54Mbps PCI card
· Wireless modem router N300
· Dell P780
· ASUS A7V8X
· BricsCAD for Linux

New Forum Topics
· Building a new PC: how EXACTLY to install USB mouse?
by: joyask43
on: 2013-06-09 14:36
6 replies, 2675 views

· Packet CD
by: natalieksh5
on: 2013-06-06 14:19
4 replies, 3455 views

· THE SIMS 2 DIRECTX 9.0C ERROR MESSAGE!! HELP! URGENT!!
by: tandrask34
on: 2013-06-05 14:06
28 replies, 93240 views

· Hello
by: barryherne
on: 2013-06-05 13:09
0 replies, 185 views

· shutdown link ?
by: estirwent
on: 2013-05-11 17:46
18 replies, 6900 views

News Channels
· Drivers
· Guides
· Reviews
· Security
· Software
· Press Release
· Updates
· Interviews
· Linux
· General
· Debian
· Red Hat
· Slackware
· Gentoo
· Mandriva
· White Box
· SUSE
· GNOME
· KDE
· CentOS
· Ubuntu
· MEPIS
· Android

What's New
Login to see an overview of all news stories since your last visit.

Welcome to our website

To take full advantage of all features you need to login or register. Registration is completely free and takes only a few seconds.

Linux Compatible » News » August 2012 » How to Split a Linux Log File by Day or Month

How to Split a Linux Log File by Day or Month

Posted by Philipp Esselbach on: 08/21/2012 09:44 AM [ Print | 0 comment(s) ]

OCmodshop shows you how to split the Linux log files by day or month




If you’re like me, then you’ve probably set up your Linux server completely wrong! Seriously though, many people who host with Linux probably have some hosting company set their server up. 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.

Before you can split the file up, you need to go to the path of the log file folder. Depending on how your Linux server is set up, it may be in /var/log/httpd/ or /home/<username>/.

If you actually look at one of the log files, you will see several bits of information. You will notice that the date and time is recorded with each action in this format: [29/Mar/2012:12:00:00 -0700]. Knowing how the date is stored will help you split the files up.


How to Split a Linux Log File by Day or Month


Bookmark and Share

Related Threads

11/12/2008 09:07 PM: how to setup network linux machine? (1) by danleff
01/22/2006 03:41 PM: need help how to set up replication on fedora core 4 (0) by lansme
03/30/2005 02:30 AM: know how to solve about monitor out of range? (4) by danleff
03/30/2005 01:28 AM: know how to solve about monitor out of range? (1) by LinuxCrusader
03/29/2004 04:26 AM: HOW TO SET UP PRINTING ON KNOPPIX (1) by jimf43
03/15/2004 07:41 PM: How to share internet connection between 2 PC's (1) by CorpoSemAlma
02/13/2004 10:32 PM: how to setup vc++ (3) by outstream
01/05/2004 07:59 PM: How to set up a linux network boot on RedHat 9.0 Linux (0) by rabbit-zek
08/27/2004 02:14 AM: How to share files with WinXP? (6) by trankillooo
07/22/2003 08:08 AM: how to setting up lan in mandrake 9.1? (2) by nightblade_

« ASRock X79 Extreme 11 Review · Icy Dock MB080U3S-1SB Blizzard & MB559U3S-1S Ultra Slim External Hard Drive Enclosure Review »

Linux Compatible » News » August 2012 » How to Split a Linux Log File by Day or Month
All products mentioned are registered trademarks or trademarks of their respective owners.
© 2002-2013 Esselbach Internet Solutions - All Rights Reserved. Terms and privacy policy
Powered by Contentteller® Business Edition