Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: How to assign a maximum size to access.log? |
|
Author |
|
jfha73
Joined: 18 Aug 2011 Posts: 62 Location: New York
|
Posted: Thu 19 Mar '15 22:48 Post subject: How to assign a maximum size to access.log? |
|
|
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
|
Posted: Fri 20 Mar '15 19:24 Post subject: |
|
|
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 |
|
|
|
|
|
|