systemctl restart rsyslog を実行すると、重複している古いログエントリー (ジャーナル内のすべてのエントリー) がログファイルに追加される

Solution Verified - Updated -

Issue

  • systemctl restart rsyslog を実行すると、現在のブートのログがすべて /var/log/messages に追加されます。

  • systemd コマンドで (/var/log/journal 内の) 永続化ジャーナリングを有効にし、rsyslog.service を再起動するたびに複数日分の古いメッセージがログファイルに再度書き込まれます。

Environment

  • Red Hat Enterprise Linux 7
  • systemd-journald
  • imjournal を使用する 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.