Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

apache log file size

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
I am having a problem with apache log files.

It seems to log everything until the file reaches 2.1G and it doesn't write anything to it.

Is there a way in apache, or linux to allow log file size to larger than this?

Thanks!
 
Some linux partitions have a limitation of ~2GB per file. You're experiencing a partition/linux limitation.

You should be using logrotate and 'apachectl graceful' to manage your logs.

D.E.R. Management - IT Project Management Consulting
 
Right, rotation and pulling out the logs will help it. Instead of restarting the server with 'apachectl graceful' you can configure Apache to write logs to the pipe and redirect output to Apache utility 'rotatelogs' that can control the size of the log files, e.g.

CustomLog "|/usr/sbin/rotatelogs /path/to/log/file 5M" common

This will rotate the log files as soon as they reach 5 Mb in size. Then you better gzip them and ftp somewhere else.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top