Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6930267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:25:30+00:00 2026-05-27T11:25:30+00:00

A friend asked me to help him with a simple php script I placed

  • 0

A friend asked me to help him with a simple php script I placed on their WordPress site. In doing so, I came across a few glaring issues I thought I could help him with. Then I came across the beast.

A 580 gigabyte error log file.

This is a simple blog, granted with millions of views a month and gigabytes of pictures, but shouldn’t he do some maintenance on the thing? I know I could tail -f the log file in most circumstances but I think it may make planets collide trying to open a text file that large.

Question

Should I tell him to just wipe it and start monitoring it fresh from here on out or is there a proper way to review even, say, the last 10 days worth of logs? I haven’t spent enough time on their server (just browsed FTP) to see what they are running.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:25:31+00:00Added an answer on May 27, 2026 at 11:25 am

    This gives you the last 100 lines:

    tail -n 100 logfile > last-100-lines.log
    

    In terms of ‘date’, you could also:

    cat |grep '2012-12' > all-dec.log
    

    Not, the exact term to grep for depends on what the log file looks like. Both operations will take a little while to run. If this application is disk-intense, you could run into problems by saturating the disk since this monster is pretty large and it’s very unlikely you have 600+ GB of RAM and that log file is cached in memory. 😉

    Anyway, for kicks, try bzip2 --best logfile and then download it and then evaluate it on localhost.

    It’s not pretty to work with files that large, but it should be do-able.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked a friend to help me with web site and I have to
A friend of mine asked me to help him with Swing, and I reached
a friend asked me to help him with a form, a client of his
I help a friend with some dev on her wordpress powered site - http://fulltwist.net/
A friend asked me for help on building a query that would show how
I've been asked to help a friend's company to bring up a web application.
My friend asked me to update a PHP application that his company uses. I
My friend asked me if it is possible to build a web site like
My friend is making a minesweeper clone and he asked me to help with
A friend asked me to add some dropdown menus to his site. It's here:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.