httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sai Jai Ganesh Gurubaran" <sguru...@cordys.com>
Subject RE: [users@httpd] Rotate access.log daily
Date Mon, 09 Oct 2006 05:43:53 GMT
Hi Frank,
 This is what we use to rotate logs per MB (u can do it for days too ):


#Rotate (every 10 MB) the access logs and error logs.
#Access logging with log rotation
LogFormat "%h %l %u %t %U \"%r\" %>s %b" accessLogs
CustomLog "|/usr/local/apache2/bin/rotatelogs
/usr/local/apache2/logs/access.log%Y%m%d-%H_%M_%S 10M" accessLogs

# To rotate Error Logs
ErrorLog "|/usr/local/apache2/bin/rotatelogs
/usr/local/apache2/logs/errorlog.%Y-%m-%d-%H_%M_%S 10M"


Refer: http://httpd.apache.org/docs/2.0/programs/rotatelogs.html
For more details.

Regards,
Sai


-----Original Message-----
From: Frank Niedermann [mailto:fbn@thelogic.org] 
Sent: Monday, October 09, 2006 10:43 AM
To: users@httpd.apache.org
Subject: [users@httpd] Rotate access.log daily


Hello,

I'm using Apache2 in front of two Tomcat servers. All my users go trough
Apache to reach the web application deployed on both Tomcat servers.

Now I have the problem that Apache's access.log grows very big in very
short
time, I have about 17 MB in two days. I've configured log rotation to
rotate
logs once per month but that will lead me into troubles with Apache's
access.log growing so fast.

Both Tomcat servers also have access.log files but every single day
Tomcat
writes into a new filed named with the actual date,
access.2006-10-09.log
for example.

Is this also possible with Apache2?

Regards,
  Frank
-- 
View this message in context:
http://www.nabble.com/Rotate-access.log-daily-tf2407938.html#a6711786
Sent from the Apache HTTP Server - Users mailing list archive at
Nabble.com.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


***********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this 
message by anyone else is unauthorized. If you are not the 
intended recipient, any disclosure, copying, or distribution of the 
message, or any action or omission taken by you in reliance on 
it is prohibited and may be unlawful. Please immediately contact 
the sender if you have received this message in error. This email 
does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written 
agreement between the intended recipient and 
Cordys Holding BV or its subsidiaries.
***********************************************************************



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message