systemctl restart rsyslog を実行すると、重複している古いログエントリー (ジャーナル内のすべてのエントリー) がログファイルに追加される
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, tools, and much more.