HUGE log file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GettingPorn
    Registered User
    • Apr 2002
    • 87

    #1

    HUGE log file

    I recently put a site on a server with ensim control panel and within about 6 days my log file grew to 418 MBs (this morning it was ~300MB)

    Is that normal? Seems rather huge to me although I get many hits.
  • missnglnk
    Confirmed User
    • Aug 2001
    • 131

    #2
    I dunno about Ensim, but depending on how many hits you get and what you log, this may be reasonable.

    Take a sample logged access request...
    203.132.97.190 - - [21/Apr/2002:03:49:28 -0400] "GET /babyteemodels/ HTTP/1.1" 200 332 "-" "Mozilla/4.0 (compatible; MSIE 5.01; Windows 95)" "missnglnk.com" "-"

    Here, I'm logging IP address, date and time, URL being accessed, response code, length of content returned, referer, browser, virtual host accessed, and user tracking cookie.

    This total line is 161 bytes, but on average, with a default apache installation, most people only log everything stated above except for virtual host accessed and the user tracking cookie, bringing you down to 141 bytes, and assuming this a porn site (duh), the requested URL is going to be longer than what I have up there, kinda like /members/sexylady/somethingseries_123.jpg, and there will be a referer logged (your member page), so we'll say that's http://missnglnk.com/babyteemodels/ or such.

    Take all of these factors into consideration and your average log entry is going to be 200-250 bytes...now we work the math:

    300MB Log File:
    300 * 1048576 = 314,572,800

    ...divided by average log size (we'll say 225 bytes here):
    314,572,800 / 225 = 1,398,101.3333...

    ...divided by six days
    1,398,101 / 6 = 233,016 hits/day

    So basically, if you're doing about 200k hits/day, I would say this log file size should be around what you would get if you only cleaned your logs out every 7 days or such.

    Hope this helps...
    --
    cat: .signature: No such file or directory

    Comment

    • GettingPorn
      Registered User
      • Apr 2002
      • 87

      #3
      Thanks for the information.

      I really did not think that a log file could be this huge, but you are very close to the actual number of hits for that account.

      Comment

      Working...