Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

rotateing logs on demand / from cron

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  setting up redirections?  
Author Message
user2348

External


Since: Jun 28, 2003
Posts: 203



(Msg. 1) Posted: Fri Apr 02, 2004 9:04 pm
Post subject: rotateing logs on demand / from cron
Archived from groups: alt>apache>configuration (more info?)

Maybe I just reinvented the wheel, but I couldn't find an easy way to do this.
All I wanted to do was rotate my apache logs at midnight Sunday, so I could have
weekly logs.

If it's of any use to anyone else I have put my patch here:
http://raburton.lunarpages.com/apache/rotatelogs/

Basically you can just send a signal (SIGUSR1 by default) to the running rotate
logs process to cause it to rotate. You can then call this once a week using
cron, or however & whenever you like.

Richard.

 >> Stay informed about: rotateing logs on demand / from cron 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Rotating logs - Hi. I'm running Apache 1.3.26 and using an obsolete program to rotate my log-files. It's giving a lot of trouble and I'm looking for a new way to have these log-files rotated. Does anyone have a good idea?

Apache Logs - newbie - So, I left my default apache running on mandrake 9.2. I have a bunch of these in my /etc/httpd/logs/access_log. Where do I go to find a list or DB of entries should expect to see in the logs, what they mean, etc? If someone has a better group for me t...

Ignore my own IP Address in the logs - Within Apache, is there a line I can edit/enable/change that will cause Apache to stop logging my own IP address in the access.log file? I could write an app in PHP that would read the log and modify it by removing the lines with my IP address and the...

merge combined logs - I'd like to know if is there a way to merge combined apache logs. I saw that merge from sourceforge mergs only common log format, and multisort makes the same. I'll have 4 logs from 4 synchronized servers, but want analyze only one log thanks

apache access logs - I have an apache web server doing virtual hosting. I have each domain storing its on log files seperate from others. I have 3 web servers all doing same for multiple domains. All webservers do as expected except for one. One server seems to backup it...
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]