본문 바로가기
카테고리 없음

rsyslog 규칙

by 삼성그룹이장 2023. 2. 23.


#### RULES ####

# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none;forti_100e.none              /var/log/messages    (호스트 이름 forti_100e는 제외)

forti_100e                /home/forti_log/forti_log (forti_100e 이름은 /home/forti_log/forti_log 로 이동)

# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure

# Log all the mail messages in one place.
"/etc/rsyslog.conf" 96L, 3388C

반응형