secure 로그 설정

2016. 3. 24. 08:43·Linux
반응형

[root@hostname etc]# vi /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 wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

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

 

현재 매주 로그를 저장하며, 4주간 보관 주기(secure.1 ~ 4)

 

------------------------------------------------------------------------------------------------------

[root@hostname logrotate.d]# vi /etc/logrotate.d/syslog

 

/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron {
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
    endscript
}

 

위의 로그들은 적용 대상

 

 

 

 

반응형
저작자표시 (새창열림)

'Linux' 카테고리의 다른 글

network IP설정확인  (0) 2016.04.26
netstat  (0) 2016.03.24
[Linux]서버중지  (0) 2015.10.19
[Linux]messages, dmesg, acpid 상태확인  (0) 2015.10.15
[Linux]리눅스 부팅시간 확인방법  (0) 2015.10.02
'Linux' 카테고리의 다른 글
  • network IP설정확인
  • netstat
  • [Linux]서버중지
  • [Linux]messages, dmesg, acpid 상태확인
애플자라
애플자라
    반응형
  • 애플자라
    애플자라
    애플자라
  • 전체
    오늘
    어제
    • 분류 전체보기 (659)
      • ChatGPT (2)
      • Linux (93)
      • Programing (92)
      • Flex, Laszlo (15)
      • Database (168)
      • Network (15)
      • Data (14)
      • Tips (120)
      • 여행★ (1)
      • Board (116)
      • 맛집탐방 (3)
      • 아이원츄 (12)
  • 블로그 메뉴

    • 홈
    • 태그
    • 미디어로그
    • 위치로그
    • 방명록
  • 링크

    • Love&Smile
    • Husk's repository
    • StartUp
    • DSDSTUDIO Experimentals
    • 신선
    • DEV.SEULKI.KR[이슬기]
    • Live Bit Block
  • 공지사항

  • 인기 글

  • 태그

    tomcat
    리눅스
    MySQL
    IP
    mssql
    데이터
    DB
    DATABASE
    윈도우
    파일
    서버
    Toad
    Excel
    server
    자동차
    delete
    eclipse
    오라클
    select
    sql
    설정
    Windows
    테이블
    java
    Oracle
    table
    백업
    Shell
    apache
    Linux
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
애플자라
secure 로그 설정
상단으로

티스토리툴바