Apache log rotation

7 posts / 0 new
Last post
#1 Mon, 04/21/2008 - 18:21
rulez22

Apache log rotation

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

Mon, 04/21/2008 - 20:40
Joe
Joe's picture

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.

--

Check out the forum guidelines!

Tue, 04/22/2008 - 12:42 (Reply to #2)
rulez22

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.

Sat, 05/03/2008 - 20:24 (Reply to #3)
rulez22

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?).

Wed, 04/23/2008 - 15:00
rulez22

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.

Wed, 04/23/2008 - 15:16 (Reply to #5)
Joe
Joe's picture

<div class='quote'>Isn't it the reason, if it is - it is not very professional. </div>

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?

--

Check out the forum guidelines!

Wed, 04/23/2008 - 15:26 (Reply to #6)
rulez22

Absolutely, that would be great!

Topic locked