Forum Moderators: DixonJones

Message Too Old, No Replies

Access log too large to open?

         

hondafox400

4:54 am on Jan 25, 2004 (gmt 0)

10+ Year Member



I've neglected checking/wiping my access log in Apache for quite some time now, and now it is 110MB large (D'oh!). I tried opening it with Notepad, but it just froze up and went unresponsive. Should I just stop Apache, delete the 110MB file, and create a new "access.txt" in the logs folder? Is the access long named access.txt, or access.log or something?

danieljean

2:40 pm on Jan 26, 2004 (gmt 0)

10+ Year Member



ouch!

Now I know why it's common to split up log files per day, e.g. localhost_access_log.2004-01-17.txt; I suggest you set that up asap.

As for the old file, everything is not lost. A bit of scripting should be able to split that up in more manageable units, perl or php would likely be ideal. Alternately, another program may be able to open it.

papamaku

2:43 pm on Jan 26, 2004 (gmt 0)

10+ Year Member



how do you do the log splitting, i.e. whats the config command?

as i have the same problem

thanks

Brett_Tabke

2:47 pm on Jan 26, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



> 110MB

LOL! (WebmasterWorld for the week is dozens of gigs). I load it right up in EditPlus. no problemo.

Use a file splitter to split the file up.

Sinner_G

2:48 pm on Jan 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should be able to import that document into a database such as MS Access or even into Excel.

papamaku

10:04 am on Jan 27, 2004 (gmt 0)

10+ Year Member



Use a file splitter to split the file up

Which would you recommend? For Apache2, to put the logs into access_ddmmyy.log format?