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

etc/rsyslog.conf 파일...

작성자 정보

  • 김종록 작성
  • 작성일

컨텐츠 정보

본문

로그 파일 중 maillog를 maillog1, maillog2, maillog3 이런식으로 몇바이트씩 띄엄띄엄 저장이 가능하도록 할려면..

etc/rsyslog.conf파일을 건드려 줘야 하나요? 아니면 /proc 디렉토로에 있는 파일을 건드려 줘야 하나요?

관련자료

댓글 1

냠냠이님의 댓글

  • 냠냠이
  • 작성일
logorate 사용하셔야 합니다.


# 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

# use date as a suffix of the rotated file
dateext

# 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 and btmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
        minsize 1M
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0600 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.

공지사항


뉴스광장


  • 현재 회원수 :  60,015 명
  • 현재 강좌수 :  35,688 개
  • 현재 접속자 :  186 명