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

centos syslog 서버 구축 rsyslog

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

안녕하세요. 

centos에서 syslog 서버 구축 방법 입니다.

centos 7.9에서 진행 했습니다.

 

1. 프로그램 설치

yum install rsyslog

 

2. 서비스 활성화

systemctl enable rsyslog
systemctl start rsyslog

 

3. 방화벽 포트 활성화

firewall-cmd --zone=public --add-port=514/udp --permanent
firewall-cmd --reload

 

4. rsyslog 설정

vim /etc/rsyslog.conf
$ModLoad imudp
$UDPServerRun 514

 

5. rsyslog 서비스 재시작

systemctl restart rsyslog

 

로그 메시지 확인하기

tail /var/log/messages

반응형