질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

logrotate 에서 wtmp file이 rotate

작성자 정보

  • 허태훈 작성
  • 작성일

컨텐츠 정보

본문

/etc/logrotate.conf 파일을 함 보세요.

보통은 아래의 내용과 비슷할 것입니다.

# see "man logrotate" for details
# 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 lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

 

위 강조 된 부분의 내용이 주석처리나 잘못된 부분이 있는지 살펴보세요.

/etc/logrotate.d 디렉토리 의 내용 중 syslog 부분도 함 보세요.

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,138 명
  • 현재 강좌수 :  36,196 개
  • 현재 접속자 :  318 명