
02-20-2012, 04:28 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Recommended size of log partition in Linux
Hi
On a busy LAMP-server, where all logs from Apache are stored under /var/log (but mysql is not logging transactions), what size would you recommend the /var/log partition to be? I want to keep logs for several years (say 10 years), but compress them using logrotate and gzip. And I want to keep all logs, not just apache but also syslog, authlog, daemon etc. I also have logs from other software like snort, mod_security and other.
Any ideas? is 10gb overkill?
|

02-20-2012, 04:43 AM
|
|
Disabled
|
|
Join Date: Nov 2010
Posts: 2,579
|
|
Why do you like to keep all logs for that long? If you really like to, probably you need 1TB or more depends how many logs your website generate every day.
|

02-20-2012, 05:08 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Quote:
Originally Posted by Lincxu
Why do you like to keep all logs for that long? If you really like to, probably you need 1TB or more depends how many logs your website generate every day.
|
Personally I wouldn't want to keep them for long but my client says it's legel requirements.
1TB sounds a little bit excessive though. Sure it would mean I would not have to worry about disk space, but I was just wondering if anyone had any experience with typical log partition sizes.
|

02-20-2012, 05:10 AM
|
|
Dependable Web Services
|
|
Join Date: Jun 2010
Location: Modesto, Ca. - USA
Posts: 4,964
|
|
Quote:
Originally Posted by infalible
Personally I wouldn't want to keep them for long but my client says it's legel requirements.
1TB sounds a little bit excessive though. Sure it would mean I would not have to worry about disk space, but I was just wondering if anyone had any experience with typical log partition sizes.
|
10 years is a bit excessive as the life of the actual server is probably going to be 2-3 years max (at least before some type of major upgrade has to be made, like replacing the HD's or getting a new/faster server.
__________________
██ Fernando Diaz Alfaro - Owner of FernGullyGraphics
██ Shared and Reseller Web Hosting Services - Web Design - Domain Names
██ Cloud Linux - Varnish Cache - WHM/Cpanel - CloudFlare - Softaculous - RVSiteBuilder Pro
██ Learn more about our services at www.FernGullyGraphics.com
|

02-20-2012, 05:14 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Quote:
Originally Posted by FernGullyGraphics
10 years is a bit excessive as the life of the actual server is probably going to be 2-3 years max (at least before some type of major upgrade has to be made, like replacing the HD's or getting a new/faster server.
|
I think 10 years is reasonable. The server is pretty fast (6 core cpu and 48gb ram). Replacing HD is also no problem (virtual disks).
But for the sake of getting my question answered, assume 2-3 years then.
|

02-20-2012, 05:16 AM
|
|
Always Ask...Don't Pretend!
|
|
Join Date: Aug 2010
Location: CPU
Posts: 2,078
|
|
If your customer tells you that this is legal requirement then tell him that money is also a requirement to keep this logs. Make sure to bill him for 2TB at least you have enough buffer and income for keeping the logs and make it clear that the cost is incremental for certain threshold.
__________________
█ Ask for Server IP & Nameservers IP to check if your reseller provider truly provides 100% white-label.
|

02-20-2012, 05:26 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Thanks!
But I am really more interested in finding out how much the /var/log usage would grow in one day on a very busy server. If anyone out there can share some numbers it would be great.
|

02-20-2012, 07:03 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Dec 2009
Location: Milan, IT
Posts: 468
|
|
What mean "busy" for you? How many hits you you have a present? Your logs are likely to be larger if there are a lot of requestes per pages...
To give you an example, I have 350-400MB of compressed logs each day for a very busy site.... :-)
__________________
Prometeus.com & IperWeb.com Hosting Solutions since 1997
We are LIR (RIPE NCC member) and do BGP with ASN 34971 Multiple gigabit/s network capacity
KVM OpenVZ and Xen VPS || Linux / Windows / *BSD
|

02-20-2012, 07:36 AM
|
|
New Member
|
|
Join Date: Feb 2012
Posts: 2
|
|
Disk partitioning is the creation of separate divisions of a hard disk drive using partition editors such as fdisk. Once a disk is divided into several partitions, directories and files of different categories may be stored in different partitions.Many new Linux sys admin (or Windows admin) create only two partitions / (root) and swap for entire hard drive.
|

02-20-2012, 08:03 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Quote:
Originally Posted by iperweb
What mean "busy" for you? How many hits you you have a present? Your logs are likely to be larger if there are a lot of requestes per pages...
|
It's a new domain so it's not yet launched. When I say busy I mean more than a million hits per day. (and I know that is nothing compared to sites that generate over a billion hits a day)
Quote:
|
To give you an example, I have 350-400MB of compressed logs each day for a very busy site.... :-)
|
Thanks, that's exactly the kind of answer i was hoping for!
|

02-20-2012, 08:15 AM
|
|
Web Hosting Evangelist
|
|
Join Date: Dec 2009
Location: Milan, IT
Posts: 468
|
|
Ok looking at some site with that numbers I see that 1.5 million of rows are 25M compressed...
__________________
Prometeus.com & IperWeb.com Hosting Solutions since 1997
We are LIR (RIPE NCC member) and do BGP with ASN 34971 Multiple gigabit/s network capacity
KVM OpenVZ and Xen VPS || Linux / Windows / *BSD
|

02-20-2012, 08:18 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Quote:
Originally Posted by iperweb
Ok looking at some site with that numbers I see that 1.5 million of rows are 25M compressed...
|
That's great! thanks again! 
|

02-20-2012, 08:22 AM
|
|
New Member
|
|
Join Date: Feb 2012
Posts: 1
|
|
|

02-20-2012, 08:40 AM
|
|
Junior Guru Wannabe
|
|
Join Date: Mar 2011
Posts: 86
|
|
You should consider predicting the size of the logs based on the growth of your current logs. One of the framework that we host can log 10GB of logs per week for having 1k visitors per day. So to keep all the logs it would require 1TB of disk space per year.
__________________
♥ Managed1.com ♥ - Affordable budget Fully Managed Hosting Services for individuals and business clients. Website Hosting. Domain Name management. High Availability Cloud servers - 99.9% Uptime, Self-Healing Failover, Load Balancing and Mirrored Backups.
♥ Whisperdale.net ♥ - Internet Service Provider since 2007!
|

02-20-2012, 08:47 AM
|
|
Newbie
|
|
Join Date: Feb 2012
Posts: 11
|
|
Quote:
Originally Posted by DmitrijCSR
You should consider predicting the size of the logs based on the growth of your current logs. One of the framework that we host can log 10GB of logs per week for having 1k visitors per day. So to keep all the logs it would require 1TB of disk space per year.
|
Thanks, but counting the number of visitors doesn't say much about the log size. Apart from the problem of defining a visitor (based on IP? cookies?), there is the problem that one visitor alone could in theory cause the entire 10GB log data if he/she was very active on the website.
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|