Translated message

A translation of this page exists in English.

如何在 Red Hat Enterprise Linux 7 及更新的版本中禁用日志速率限制?

Solution In Progress - Updated -

Issue

  • 我们希望将所有的信息都记录到 syslog 中,应该如需修改 rsyslog.conf 配置以避免丢失消息?

  • 为什么在 RHEL 服务器中收到以下信息?

    Apr  7 11:50:35 localhost rsyslogd-2177: imjournal: begin to drop messages due to rate-limiting
    Apr  7 11:50:47 localhost rsyslogd-2177: imjournal: 406 messages lost due to rate-limiting
    Apr  7 12:00:38 localhost rsyslogd-2177: imjournal: begin to drop messages due to rate-limiting
    Apr  7 12:00:48 localhost rsyslogd-2177: imjournal: 391 messages lost due to rate-limiting
    Apr  7 12:19:21 localhost rsyslogd-2177: imjournal: begin to drop messages due to rate-limiting
    
  • 如何在 RHEL 服务器中禁用 rsyslog 的速率限制?

  • 我在 rsyslog.conf 中禁用了速率限制,但仍然有缺少消息的情况。在日志中看到类似如下的警告信息:

    Oct 28 02:07:57 localhost systemd-journal[1864]: Suppressed 97 messages from /
    
  • 我在 /etc/systemd/journald.conf 中提高了速率限制,但我仍然有缺少消息的情况。 在日志中看到类似如下的警告信息:

    Oct 28 02:07:57 localhost systemd-journal[1864]: /dev/kmsg buffer overrun, some messages lost.
    

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • systemd-journald
  • 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