RHEL 7.2 でログファイルに syslog メッセージが表示されないのはなぜですか?

Solution Verified - Updated -

Issue

rsyslog.conf を以下のようにカスタマイズします。

  • ジャーナルからメッセージをインポートできません。
  • ローカルメッセージを除外できません。

/etc/rsyslog.conf に以下のような行があります。

#$ModLoad imjournal
$OmitLocalLogging off
#$IMJournalStateFile imjournal.state

RHEL7.0 システムでは、この設定に従って rsyslog が /var/log/messages にメッセージを出力します。RHEL7.2 にアップグレードするとこのメッセージが停止します。

Environment

  • Red Hat Enterprise Linux (RHEL) 7.2
  • 219-19.el7_2.9 以前の systemd (7.2.z ストリームでリリース)
  • rsyslog

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.