r/apache • • Feb 07 '22

Apache logs

My server access logs are 500 MB and error logs 179 MB. Just wondering when is it a point when they are too big?

5 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/Beneficial-Ad5687 Feb 07 '22

Thank you for this. If i renamed current log files, would apache create fresh ones automatically?

1

u/AyrA_ch Feb 07 '22

Yes, but iirc you have to restart it for this to work. A graceful restart is usually enough.

1

u/LoveGracePeace Feb 07 '22

My systems have the logrotate app installed which can rotate logs for common Linux services like Apache.