Welcome, Guest
Please Login or Register.
Lost Password?
Re:Apache log rotation (1 viewing)
Post Reply

TOPIC: Re:Apache log rotation

#11893
rulez22 (User)
Posts: 24
graphgraph
Apache log rotation 2008/04/21 18:21  
0) Is Apache log rotation in virtualmin set to 1 month?
1) How do I change logs to be kept in one file instead of
access_log.1.gz
access_log.2.gz...
error_log.1.gz
error_log.2.gz...

To have just two files with combined logs for errors and access:
access_log
error_log

Thanks
  The administrator has disabled public write access.
#11895
Joe (Admin)
Posts: 3784
graph
Re:Apache log rotation 2008/04/21 20:40  
0 I think it's weekly by default. You could check the crontab to see the schedule.

1 I don't know how, and I really don't think you'd want to do that. Log analysis would no longer work, as far as I know. And it'd be a lot harder to read when you're looking for errors.
  The administrator has disabled public write access.
#11923
rulez22 (User)
Posts: 24
graphgraph
Re:Apache log rotation 2008/04/22 12:42  
I think i found both of these options, it is in "Log Rotation" in Webmin. My opinion - it is not a good setup, also it is not that flexible - there is no way to make it different other than "daily, weekly or monthly".
Sometimes people need to come back to the records which are 1 year old. A year would be perfect default setting, of course not in one file (it will be too big), maybe weekly "access.log" and weekly "error.log" - around 53 files for a year, which is possible to set in Webmin, but rotation itself cannot be more than 1 month. Glad I realised it in time the system don't keep any records.
  The administrator has disabled public write access.
#11956
rulez22 (User)
Posts: 24
graphgraph
Re:Apache log rotation 2008/04/23 15:00  
Oh come on..,
It looks like it is all down to log rotation! Ridiculous isn't it?
I've received daily message about backup and it says:
"Backup failed! See the progress output above for the reason why. Total backup time was 01 minutes, 27 seconds."

And in all my websites there is one I have deleted rotation for - says: Copying Logrotate configuration ..
.. no log rotation configuration found!

Isn't it the reason, if it is - it is not very professional.
  The administrator has disabled public write access.
#11957
Joe (Admin)
Posts: 3784
graph
Re:Apache log rotation 2008/04/23 15:16  
Isn't it the reason, if it is - it is not very professional.

It is configurable, of course. You can choose whether backups stop or try to continue in the event of a failure. The goal is to make sure backups are perfect...if something within the backup fails, Virtualmin considers the whole backup a failure, because it is not complete. We generally think you'd like to know that your backup isn't complete. That's all.

But, if I'm understanding you, the core problem you have is that you want log rotation to be more configurable, correct?
  The administrator has disabled public write access.
#11958
rulez22 (User)
Posts: 24
graphgraph
Re:Apache log rotation 2008/04/23 15:26  
Absolutely, that would be great!
  The administrator has disabled public write access.
#12159
rulez22 (User)
Posts: 24
graphgraph
Re:Apache log rotation 2008/05/03 20:24  
Still after some time working with the system - there is nothing to moan about - it is just unacceptable, i think even in windows you can set up this sort of thing.
it is not serious administration - 1 month of logs strict by the system is propably one of the reasons Virtualmin/Webmin isn't a serious system for a professionals.
I really do like the rest of it, the problem is - there is no way to change it (or is there?).
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.