logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: How to assign a maximum size to access.log?
Author
jfha73



Joined: 18 Aug 2011
Posts: 62
Location: New York

PostPosted: Thu 19 Mar '15 22:48    Post subject: How to assign a maximum size to access.log? Reply with quote

Hey guys,

Can I configure a maximum size for this file?

I have had to wipe it out a few times because it's been getting larger than 4GB

Thanks.
Back to top
5kKate



Joined: 20 Mar 2015
Posts: 6

PostPosted: Fri 20 Mar '15 19:24    Post subject: Reply with quote

Hey jfha73!

Usually you setup log rotate to truncate the size of the file. You can set it up to automatically rotate it according to a schedule like daily or weekly. It will also compress old files so they take up less space. http://linuxcommand.org/man_pages/logrotate8.html

Hope that helps!

Kate
Back to top


Reply to topic   Topic: How to assign a maximum size to access.log? View previous topic :: View next topic
Post new topic   Forum Index -> Apache