리눅스 분류
messages 로그 파일 로테이션 되지 않는 이유
작성자 정보
- 김마현 작성
- 작성일
컨텐츠 정보
- 2,019 조회
- 1 댓글
- 0 추천
- 목록
본문
Fedora2, CentOS 4.4 시스템을 운영하면서 공통적으로 /var/log/message.1 ~ 4 파일이 로테이션이 한번 되고 한달 정도 후면 파일 사이즈 0으로 로그가 남지 않습니다.
syslog 데몬 돌아가는 상태이며, redhat 9.0에선 이상없이 로그파일이 로테이션 되며 꾸준히 쌓이는데 왜 그런지 모르겠네요. 아시는분 답변 주시면 감사하겠습니다 ^^
관련자료
-
이전
-
다음
댓글 1
배준태님의 댓글
- 배준태
- 작성일
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
#이렇게 설정되어있는지 확인좀 부탁드리겠습니다.
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
#이렇게 설정되어있는지 확인좀 부탁드리겠습니다.