PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` rotatelogs - ġ α׸ ȯϱ α α׷ - Apache HTTP Server Version 2.4
<-
Apache > HTTP Server > Documentation > Version 2.4 > Programs

rotatelogs - ġ α׸ ȯϱ α α׷

ֽ ƴմϴ. ֱٿ ϼ.

rotatelogs ġ α α׷̴. :

CustomLog "|bin/rotatelogs /var/logs/logfile 86400" common

׷ /var/logs/logfile.nnnn . nnnn α׸ ý۽ð̴ ( ð ׻ ȯⰣ ̴. ׷ cron ũƮ óϱ ). ȯⰣ (⼭ 24 ð) ο α׸ Ѵ.

CustomLog "|bin/rotatelogs /var/logs/logfile 5M" common

α ũⰡ 5 ްƮ ɶ ȯѴ.

ErrorLog "|bin/rotatelogs /var/logs/errorlog.%Y-%m-%d-%H_%M_%S 5M"

α ũⰡ 5 ްƮ ɶ errorlog.YYYY-mm-dd-HH_MM_SS  α ȯѴ.

Support Apache!

top

rotatelogs [ -l ] logfile [ rotationtime [ offset ]] | [ filesizeM ]

top

ɼ

-l
ȯֱ GMT ð Ѵ. (BST DST ) GMT ð ϴ ȯ濡 -l ϸ ġ ߻ ִ!
logfile
α ο ̸. logfile '%' ڰ ִٸ strftime(3) Ĺڿ óѴ. '%' ڰ ٸ ڿ ʴ ð .nnnnnnnnnn ڵ δ. Ⱓ ۽ð Ѵ.
rotationtime
α ȯ ʴ ð.
offset
UTC д ð. ϸ 0 Ͽ UTC Ѵ. , UTC -5 ð ð Ѵٸ ƱԸƮ -300 Ѵ.
filesizeM
ð ƴ ũ⸦ Ҷ ްƮ ִ ũ ڿ M δ. rotationtime offset Ķ͸ Ѵ.
top

ðɼ

α Ĺڿ ǥ strftime(3) ؾ Ѵ. ̺귯 Ư Ȯ strftime(3) manpage ϶.

%A(ȭ) ̸
%a(ȭ) 3- ̸
%B(ȭ) ̸
%b(ȭ) 3- ̸
%c(ȭ) ¥ ð
%d2-ڸ
%H2-ڸ ð (24 ð ð)
%I2-ڸ ð (12 ð ð)
%j3-ڸ ¥
%M2-ڸ
%m2-ڸ
%p(ȭ) 12 ð ð am/pm
%S2-ڸ
%U2-ڸ ϼ ( ù Ͽ)
%W2-ڸ ϼ ( ù )
%w1-ڸ ϼ ( ù° Ͽ)
%X(ȭ) ð
%x(ȭ) ¥
%Y4-ڸ
%y2-ڸ
%Zð ̸
%%ڱ״ `%'

:  en  |  fr  |  ko  |  tr 

top

Comments

Notice:
This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Libera.chat, or sent to our mailing lists.