Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
as I understand it, it is taken into account at the time the rotation period occurs. so that would be "rotate weekly IF the size matches the requirements"
Let me be immature enough to respond
I wouldn't respond with "look for maxsize" instead of "look for size" if i hadn't checked first. i simply pointed you to the first place in that file with answer to your question.
Quote:
maxsize size
Log files are rotated when they grow bigger than size bytes even before
the additionally specified time interval (daily, weekly, monthly, or
yearly). The related size option is similar except that it is mutually
exclusive with the time interval options, and it causes log files to be
rotated without regard for the last rotation time. When maxsize is
used, both the size and timestamp of a log file are considered.
minsize size
Log files are rotated when they grow bigger than size bytes, but not
before the additionally specified time interval (daily, weekly, monthly,
or yearly). The related size option is similar except that it is mutu‐
ally exclusive with the time interval options, and it causes log files
to be rotated without regard for the last rotation time. When minsize
is used, both the size and timestamp of a log file are considered.
(...)
size size
Log files are rotated only if they grow bigger then size bytes. If size
is followed by k, the size is assumed to be in kilobytes. If the M is
used, the size is in megabytes, and if G is used, the size is in giga‐
bytes. So size 100, size 100k, size 100M and size 100Gare all valid.
i do have newer version of logrotate so yea, could be a bit different on your machine.
ok, i'm sincerely sorry for pointing you toward the manual, since you couldn't find the answer to your question there. does this mean your question is still open?
i'm thankful for pointing out that i should write only "RTFM"
ok, i'm sincerely sorry for pointing you toward the manual, since you couldn't find the answer to your question there. does this mean your question is still open?
i'm thankful for pointing out that i should write only "RTFM"
i had already gone through man 3-4 times. did you notice the big "[SOLVED]" in the title of this thread, and i also wrote "solved" in post #6, this would indicate that it is no longer a open question.
Last edited by Linux_Kidd; 03-08-2012 at 12:35 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.