|
Blue Forest http://www.lslnet.com at 3:18 p.m. on August 18, 2006
Syslog Log Files I do under Red Hat Linux AS 3 Cisco switch Syslog Server has been normal work. /syslog/2950 Log files and other records.
I want Syslog automatically re-starting a new weekly log files, the approach?
In addition /etc/logrotate.d/syslog document which I described in the above document, but I do not know how to conduct tests.
And that it should not be able to play a week.
How can kind for the week starting a new log files? ? ? Thank you. . |
Syslog Log Files Their roof that will not have this?
Thank you guidance,. . |
Syslog Log Files Cron solve it. I have not done, you can be a script, together with the CRON can be bars. |
Syslog Log Files Crontab we just learning, we should be able, within a specified period of time in the operation of its orders.
LINXU you will make switches with the landlord, the bar should not be lazy, hippy! ! ! ! After you learn. Huitie Oh, the need to be successful, many postings is not the end of the first, no answers, there is ah, we told you so successful! Xianxie over, I wish you success! !
This is on my QQ 113339349 |
Syslog Log Files Oh to be done script Meyer, a school last semester, but I do not understand the preparation process, and you should study oh. |
Syslog Log Files Vi /etc/logrotate.conf
Each week the implementation of a weeky #
Rotate four log reservation # 4
After re-establishing create #logratoe log
After the log compression compress #rotate
Contents include the following rotation /etc/logrotate.d /etc/logrotate.d installed # include
Able to meet demand? |
Syslog Log Files Cron script writing can be resolved. .
/etc/rc.d/init.d/syslog Stop
Mv /var/log/test /var/log/test.1
Touch /var/log/test
/etc/rc.d/init.d/syslog Start
Cron daily operations. . .
Mv wrote in the document were based on date to be named on the documents was deleted to avoid RENAMED. . .
/etc/rc.d/init.d/syslog Stop
Day=`date '+%Y%m%d' `
Mv /var/log/test /var/log/test.$day
Touch /var/log/test
/etc/rc.d/init.d/syslog Start
Test. .
Script robustness and does not judge whether the test documents. |
Syslog Log Files Logrotate should be resolved |
Syslog Log Files
| Syslog Log Files Logrotate, how do you set up?
How do you know that nothing in between? |
Syslog Log Files I know how logrotate configuration of the force?
Consult upstairs.
I do not want to wait until one week after log transformation was not only to find a solution. .
I estimate or distribution problems. . |
| |