You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2008/12/01 22:38:42 UTC

DO NOT REPLY [Bug 46318] New: rotatelogs does respect file size limit

https://issues.apache.org/bugzilla/show_bug.cgi?id=46318

           Summary: rotatelogs does respect file size limit
           Product: Apache httpd-2
           Version: 2.0.59
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: support
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: anurag_gujral@yahoo.com


On a one machine I am running two instances of rotatelogs
/usr/sbin/rotatelogs /home/y/logs/httpd/error_log_abc-%Y-%m-%d-%H 5M

/usr/sbin/rotatelogs /home/y/logs/httpd/error_log_cde-%Y-%m-%d-%H 5M

For files error_log_abc the rotatelogs creates new log file when size reaches
5M
but for error_log_def this does not happens ,it continues to grow to sizes
greater than 5M and gets rotated every 1 hour.

Appears to be a bug since error_log_def should also get rotated when it size
exceeds 5M


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46318] rotatelogs does respect file size limit

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46318


Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO




--- Comment #1 from Eric Covener <co...@gmail.com>  2008-12-01 14:03:45 PST ---
Please copy/paste the relevant parts of your config, rotatelogs running via ps
output, and an ls -l of your logs directory.  

There's some inconsistency in the info you provided.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46318] rotatelogs does respect file size limit

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46318





--- Comment #2 from Anurag <an...@yahoo.com>  2008-12-01 14:13:09 PST ---
ps output shows:

 /usr/sbin/rotatelogs /home/y/logs/httpd/error_log_abc-%Y-%m-%d-%H 5M
 /usr/sbin/rotatelogs /home/y/logs/httpd/error_log_def-%Y-%m-%d-%H 5M

config file
This is one config file.
ErrorLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/error_log_abc-%Y-%m-%d-%H
5M"

This is second config file
ErrorLog "|/usr/sbin/rotatelogs /home/y/logs/httpd/error_log_def-%Y-%m-%d-%H
5M"

ls -lh /home/y/logs/httpd/error_log_abc*
-rw-r--r--  1 root root 5.1M Dec  1 01:33
/home/y/logs/httpd/error_log_abc-2008-12-01-07
-rw-r--r--  1 root root 5.1M Dec  1 03:26
/home/y/logs/httpd/error_log_abc-2008-12-01-09
-rw-r--r--  1 root root 5.1M Dec  1 05:15
/home/y/logs/httpd/error_log_abc-2008-12-01-11
-rw-r--r--  1 root root 5.1M Dec  1 06:59
/home/y/logs/httpd/error_log_abc-2008-12-01-13
-rw-r--r--  1 root root 5.1M Dec  1 08:50
/home/y/logs/httpd/error_log_abc-2008-12-01-14
-rw-r--r--  1 root root 5.1M Dec  1 10:36
/home/y/logs/httpd/error_log_abc-2008-12-01-16
-rw-r--r--  1 root root 5.1M Dec  1 12:10
/home/y/logs/httpd/error_log_abc-2008-12-01-18
-rw-r--r--  1 root root 5.1M Dec  1 13:56
/home/y/logs/httpd/error_log_abc-2008-12-01-20

ls -lh /home/y/logs/httpd/error_log_def*
-rw-r--r--  1 root root  72M Nov 30 23:59
/home/y/logs/httpd/error_log_def-2008-12-01-07
-rw-r--r--  1 root root  71M Dec  1 00:59
/home/y/logs/httpd/error_log_def-2008-12-01-08
-rw-r--r--  1 root root  72M Dec  1 01:59
/home/y/logs/httpd/error_log_def-2008-12-01-09
-rw-r--r--  1 root root  72M Dec  1 02:59
/home/y/logs/httpd/error_log_def-2008-12-01-10
-rw-r--r--  1 root root  72M Dec  1 03:59
/home/y/logs/httpd/error_log_def-2008-12-01-11
-rw-r--r--  1 root root  72M Dec  1 04:59
/home/y/logs/httpd/error_log_def-2008-12-01-12
-rw-r--r--  1 root root  72M Dec  1 05:59
/home/y/logs/httpd/error_log_def-2008-12-01-13
-rw-r--r--  1 root root  73M Dec  1 06:59
/home/y/logs/httpd/error_log_def-2008-12-01-14
-rw-r--r--  1 root root  71M Dec  1 07:59
/home/y/logs/httpd/error_log_def-2008-12-01-15
-rw-r--r--  1 root root  71M Dec  1 08:59
/home/y/logs/httpd/error_log_def-2008-12-01-16
-rw-r--r--  1 root root  72M Dec  1 09:59
/home/y/logs/httpd/error_log_def-2008-12-01-17
-rw-r--r--  1 root root  73M Dec  1 10:59
/home/y/logs/httpd/error_log_def-2008-12-01-18
-rw-r--r--  1 root root  72M Dec  1 11:59
/home/y/logs/httpd/error_log_def-2008-12-01-19
-rw-r--r--  1 root root  72M Dec  1 12:59
/home/y/logs/httpd/error_log_def-2008-12-01-20
-rw-r--r--  1 root root  71M Dec  1 13:59
/home/y/logs/httpd/error_log_def-2008-12-01-21


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46318] rotatelogs does respect file size limit

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46318


Eric Covener <co...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |ASSIGNED
          Component|support                     |Documentation




--- Comment #3 from Eric Covener <co...@gmail.com>  2008-12-01 14:50:39 PST ---
Your format string doesn't have enough granularity to roll more then once per
day, so your "new" 5MB of logs is appended to all the previous entries from the
same day.

Changing component to documentation...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 46318] rotatelogs does respect file size limit

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46318

Dan Poirier <po...@pobox.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #4 from Dan Poirier <po...@pobox.com> 2010-10-19 11:27:46 EDT ---
Added warning to rotatelogs doc for trunk and 2.2.
r1024263 and r1024264.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org