Linux news and help for home broadband internet users
It is currently Wed Jun 29, 2022 12:30 pm

All times are UTC + 10 hours [ DST ]

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Apache Log Rotation
PostPosted: Wed May 28, 2003 9:31 am 

Joined: Sun May 04, 2003 3:09 pm
Posts: 5
Location: Adelaide, Australia
Hey Guys,
I have just noticed after opening my apache access log file there is a HUGE amount of data in there which I was expecting but after checking the file size its 12 meg, no wonder it took soo darn long to open and go through.

Basically what I am wanting to achieve is rotate the access log on a daily basis (lets say around 4am each morning) making it small enough so I can read it without killing the box when I attempt to open it.

I have come across this page which appears to do what I want but exactly how I go about implementing it I'm lost. I am pretty sure I've got the syntax part of it worked out but where it should go and telling it to run at that time is what I'm struggling with.

Of course any other suggestions on tackling this would be greatly appreciated, I've read about doing it using crond but still being the good old n00b something tells me I won't be doing that in a hurry.

Its the smallest things that I want to get done that often annoy me the most :oops:


Reply with quote  
 Post subject:
PostPosted: Fri May 30, 2003 1:19 pm 

Joined: Sun Jun 23, 2002 9:20 pm
Posts: 187
Location: Interweb - Sydney
Looks like you can either put that in your apache config file or just use rotatelogs manually.

"Backups are for wimps. Real men upload their data to an FTP site and have everyone else mirror it."
Administrator, Editor, Technical

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 10 hours [ DST ]

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group