Translated message

A translation of this page exists in English.

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content