ogrotate 로 3개의 로그를 1달단위로 순환 하려면 /etc/logrotate.conf 파일의 마지막에 다음과 같이 추가 합니다.
# system-specific logs may be configured here
/usr/local/apache/log/
webmania.com-access_log {
monthly
rotate 2
}
응용하여 다른 로그들도 주기적으로 관리 할수 있겠네요.
Posted by 홍반장
Posted by 홍반장
Trackback URL : http://tcbs17.cafe24.com/tc/trackback/99
- 홍반장
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |