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.