Äîêóìåíò âçÿò èç êýøà ïîèñêîâîé ìàøèíû. Àäðåñ
îðèãèíàëüíîãî äîêóìåíòà
: http://www.arcetri.astro.it/manual/ko/programs/rotatelogs.html
Äàòà èçìåíåíèÿ: Mon Jan 21 19:44:30 2013 Äàòà èíäåêñèðîâàíèÿ: Fri Feb 28 08:24:25 2014 Êîäèðîâêà: ISO8859-5 Ïîèñêîâûå ñëîâà: ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ï ð ï ð ï ï ï ï ï ï ï |
Apache HTTP Server Version 2.2
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
ÏÝ ÀÀÐÊ ÖÔÐßÐË
ÈÈÅùÎþÌ- ÏÐÇ?ÇÞÁç ÖÔÐßÐË Ì?Ø?×áÄé.
rotatelogs
[ -l ]
logfile
[ rotationtime [ offset ]] |
[ filesizeM ]
-l
-l
ÐË Ë÷Ïû×ßÈù ÏÉÁòÔÅ
ÎÚÐÊ ÀñÀ?ÀÅ ÉïË×â Ì? ÐæÄé!logfile
strftime(3)
Ð× ×?ÍÔÉ?ÐêÏ-À? ÀÀÐÜ ÓÃÈ?×áÄé.
'%' É?ÐêÀÅ Î?ÄéÈù ÅêÏÅ ÓÚÄìÐ? ÍÓÀ? .nnnnnnnnnnÐË
ÐêÅÏÐÈÇÞ ÊéÐÞÄé. ÅÞ ×?ÍÔ È?ÅÞ ×?Ð÷ ÁòÀ?ÊÞÕÝ ÍÓÐëÍÓÀ?ÐË ÀøËú×áÄé.rotationtime
offset
-300
ÐË Ñ?Ñ?×áÄé.filesizeM
M
ÐË ÊéÐÞÄé. rotationtimeÀ? offset ÄûÍÕ ÐÜ
ÖÔÆ?ÉÜÕÝÈ? Ë÷Ïû×áÄé.ÄéÐÍ ÇÞÁçÖÔÐß ×?ÍÔÉ?ÐêÏ- ×?×?ÐÊ È?Å÷ strftime(3)
ÁÈ×?ÐÜ Ñ?Ï?×èÎï ×áÄé. Æ?ÐÜÊúÇ?È? Ö?Ð?Ð× Ø?ÐõÐÊ
strftime(3)
manpageÈ? Ò?Àý×ßÆ?.
%A | (Ñ?Ï?Ø-ÅØ) ÏßÐ?×á ÏôÐß ÐÜÈ? |
%a | (Ñ?Ï?Ø-ÅØ) 3-É?Ðê ÏôÐß ÐÜÈ? |
%B | (Ñ?Ï?Ø-ÅØ) ÏßÐ?×á Äî ÐÜÈ? |
%b | (Ñ?Ï?Ø-ÅØ) 3-É?Ðê Äî ÐÜÈ? |
%c | (Ñ?Ï?Ø-ÅØ) Ã?Ò?ÏÝ ÍÓÀ? |
%d | 2-ÐêÈ? Ðß |
%H | 2-ÐêÈ? ÍÓÀ? (24 ÍÓÀ? ÍÓÀø) |
%I | 2-ÐêÈ? ÍÓÀ? (12 ÍÓÀ? ÍÓÀø) |
%j | 3-ÐêÈ? Ã?Ò?Ì? |
%M | 2-ÐêÈ? Êà |
%m | 2-ÐêÈ? Äî |
%p | (Ñ?Ï?Ø-ÅØ) 12 ÍÓÀ? ÍÓÀøÐ× am/pm |
%S | 2-ÐêÈ? ÓÚ |
%U | 2-ÐêÈ? ÑæÐßÌ? (ÑæÐ× ÓÉÉ?Ð÷ Ã?ÐÊ ÐßÏôÐß) |
%W | 2-ÐêÈ? ÑæÐßÌ? (ÑæÐ× ÓÉÉ?Ð÷ Ã?ÐÊ Ï?ÏôÐß) |
%w | 1-ÐêÈ? ÏôÐßÌ? (ÑæÐ× ÓÉÉ?ÒÀ Ã?ÐÊ ÐßÏôÐß) |
%X | (Ñ?Ï?Ø-ÅØ) ÍÓÀ? |
%x | (Ñ?Ï?Ø-ÅØ) Ã?Ò? |
%Y | 4-ÐêÈ? Ï?ÅÅ |
%y | 2-ÐêÈ? Ï?ÅÅ |
%Z | ÍÓÀ?Äû ÐÜÈ? |
%% | É?ÐêÁçÄûÇÞ `%' |