Show Table of Contents
18.5. 가상화 호스트 로깅 서버 설정
호스트는 호스트의 동작 및 문제를 기록하는 로그 파일을 생성 및 업데이트합니다. 이러한 로그 파일을 중앙 수집하면 디버깅을 단순화할 수 있습니다.
이러한 절차는 중앙 로그 서버에서 사용할 것을 권장합니다. 다른 로깅 서버를 사용하거나 이 절차를 사용하여 Red Hat Virtualization Manager에서 호스트 로깅을 활성화할 수 있습니다.
절차 18.1. 가상화 호스트 로깅 서버 설정
- rsyslog 트래픽을 허용하기 위해 SELinux를 설정합니다.
# semanage port -a -t syslogd_port_t -p udp 514
- 다음과 같은 행을 추가하여
/etc/rsyslog.conf를 편집합니다:$template TmplAuth, "/var/log/%fromhost%/secure" $template TmplMsg, "/var/log/%fromhost%/messages" $RuleSet remote authpriv.* ?TmplAuth *.info,mail.none;authpriv.none,cron.none ?TmplMsg $RuleSet RSYSLOG_DefaultRuleset $InputUDPServerBindRuleset remote
다음 행을 주석 해제 처리합니다:#$ModLoad imudp #$UDPServerRun 514
- rsyslog 서비스를 다시 시작합니다:
# service rsyslog restart
가상화 호스트에서
messages 및 secure 로그를 수신 및 저장하도록 중앙 로그 서버가 설정됩니다.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.