imuxsock begins to drop messages

EFR32BG22 Thunderboard开发板 使用SPI 读取加速度计 Simplicity Studio v5 创建Silicon Labs蓝牙SoC EFR32BG22 Thunderboard模块的加速度计工程,模块上有一个ICM-20648 6轴运动跟踪设备,集成3轴加速度计和3轴陀螺仪功能,使用SPI接口跟EFR32BG22芯片连接。 我尽量以图片的形式展示(少打字): 将EFR32BG22的Thunderboard模块通过USB线插入到电脑,打开Simplicity Studio v5软件。 下面看重点: 点击搜索到的IO Stream: USART,点击Ins 阅读详情
It turns out that many modern Linux distributions come with 'rsyslog', which is a replacement for 'syslogd' or 'sysklogd', but starting with version 5.7.1 of rsyslog, a feature known as rate-limiting was added to the utility, and if a given process ID (PID) were to send more than 200 messages to /var/log/messages in a 5 second interval (the default setting in rsyslog), it will start to drop messages and place the following warning inside of /var/log/messages:
 
Feb  5 13:07:52 plugh rsyslogd-2177: imuxsock begins to drop messages
from pid 12105 due to rate-limiting
 
In the case of daemons or processes logging to /var/log/messages (or any other directory/file which rsyslog happens to be handling  logging for), a great deal of important and/or critical logging  data could be lost to security or system administrators.
 
While rate-limiting on routers/firewalls/web servers is a useful method of containing certain types of network based attacks, in the case of system and/or application logging, this may create a logistical nightmare for SIEM's or applications which collect and analyze large amounts of system and/or application logs for event information/messages/warnings.
 
In doing some research on rsyslog, I found two solutions which can be used to solve this condition on systems where rsyslog is the default system logging method.
 
Note - Back up any file(s) listed below before proceeding!
 
The first solution is to simply increase the messages allowed and the time interval before rate-limiting occurs in rsyslog.  To do this, locate the rsyslog.conf and/or rsyslog.early.conf (usually in /etc) and add the following lines:
 
$SystemLogRateLimitInterval 10
$SystemLogRateLimitBurst 500
 
after any ModLoad commands in rsyslog.conf and/or rsyslog.early.conf
 
This will tell rsyslog to start rate-limiting (discarding messages) when more than 500 messages from a single PID are received within a 10 second interval (these numbers are not absolutes, they can be tailored to any given system, btw).
 
The second solution is to simply turn off rate-limiting for rsyslog, and to do this, add the following line to rsyslog.early.conf and/or rsyslog.conf using your favorite editor (Iím a vi/vim/gvim hound):
 
$SystemLogRateLimitInterval 0
 
after any ModLoad commands in rsyslog.conf and/or rsyslog.early.conf
 
This will disable any rate-limiting in effect for the rsyslog process running on this system.  Note that by doing this, an out of control process ID on your system can fill up /var/log/messages with a lot of useless messages (which is why rate-limiting is enabled by default in rsyslog).
 
Remember to stop/start or restart the rsyslog daemon in order to make the changes to rsyslog.conf and/or rsyslog.early.conf take effect.
Reboot rsyslog:

/etc/init.d/rsyslog resart


 
The following Linux systems use 'rsyslog' as the default system logger (these are distributions which I am actively using, btw):
 
CentOS 6.x
Debian 5.0 or greater
Fedora 13 or greater
OpenSuSE 11.x/12.x
Ubuntu 10.0 or greater
 
BSD based systems (FreeBSD 8.x/9.0, OpenBSD 5.x, and NetBSD 5.x/6.0) use traditional syslogd as the default system logging utility.




AI智能体赋能Cypress:自动化前端测试的新范式 自动化测试是现代软件工程保障质量的核心实践,其原理是通过脚本模拟用户操作,对软件功能进行验证。随着大语言模型(LLM)和智能体(Agent)技术的发展,测试自动化正迈向智能化新阶段。智能体能够理解自然语言描述的测试需求,并自主规划、执行测试步骤,这为应对前端UI频繁变更、测试用例维护成本高等挑战提供了新思路。在工程实践中,将Cypress这一流行的前端测试框架封装为智能体可调用的标准化技能(Skill),是实现这一愿景的关键。通过设计清晰的交互协议和状态管理机制,智能体可以像人类测试工程师一样“感知”页面状 阅读详情

相关推荐

optee系统启动流程

BL2 - Trusted Boot Firmware,一般为Trusted Bootloader, 也称第一个启动镜像。BL31 - EL3 Runtime Firmware,负责双系统切换,运行在secure monitor 或ATF中。BL33 - Non-Trusted Firmware,一般为uboot、linux kernel。BL32 - Secure-EL1 Payload, 一般为TEE OS Image。BL1 - Trusted ROM,一般为BootRom。

baron-周贺贺-代码改变世界ctw 264

Linux之日志系统

Linux之日志系统 实验介绍 日志数据可以是有价值的信息宝库,也可以是毫无价值的数据泥潭。它可以记录下系统所产生的所有行为,并按照某种规范表达出来。我们可以使用日志系统所记录的信息为系统进行排错,优化系统的性能,或者根据这些信息调整系统的行为。收集你想要的数据,分析出有价值的信息,可以提高系统、产品的安全性,可以帮助开发完善代码,优化产品。日志会成为在事故发生后查明“发生了什么”的一

脱离了低级趣味的流氓 1642

禁止使用服务器 IP 访问 Apache 环境下的 Web 站点

通过在 Apache 的配置文件中添加适当的指令,我们可以轻松地禁止使用服务器 IP 地址访问我们的 Web 站点。在 Apache 环境下,有时我们希望禁止用户使用服务器的 IP 地址直接访问我们的 Web 站点,而只允许使用域名进行访问。现在,当用户尝试使用服务器的 IP 地址来访问你的网站时,他们将会被拒绝访问,只有通过域名才能正常访问。为了实现这个目标,我们可以通过 Apache 的配置文件进行相应的设置。表示禁止对根目录的访问权限,即禁止使用服务器的 IP 地址进行访问。

TpCode的博客 918

RHEL 6.x 搭建rsyslog日志服务器和loganalyzer 日志分析工具

RHEL 6.x  搭建rsyslog日志服务器和loganalyzer日志分析工具 =============================================== rsyslog的介绍 logrotate日志滚动的介绍 rsyslog的存储途径 基于web的loganalyzer日志分析工具的搭建 =======================

u010154760的专栏 2395

imuxsock lost 353 messages from pid 20261 due to rate-limiting 解决办法

日志中出现大量一下日志时 May 24 18:42:08 yw_lvs2_backup rsyslogd-2177: imuxsock lost 353 messages from pid 20261 due to rate-limiting 说明超过的rsyslog的配置记录最大峰值,可以通过syslog的配置文件来修复 解决方案如下: echo "$SystemLogRat...

weixin_34055910的博客 394

Linux基础 -- 日志系统

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34216036的博客 237

rsyslogd 重启_解决rsyslogd日志丢失

最近发现跑keepalived的几台机器的日志总是打印不完,还好给抛了一个报错,信息如下:[root@yw_lvs2_backup etc]# tail -n 1000000 /var/log/messages-20130526 | grep "rate-limiting"May 20 11:43:55 yw_lvs2_backup rsyslogd-2177: imuxsock begins t...

weixin_39613824的博客 393

rsyslog相关

rsyslog会出现imuxsock begins to drop messages from pid类似错误,解决方法是: echo "$SystemLogRateLimitInterval 60" >> /etc/rsyslog.conf echo "$SystemLogRateLimitBurst 3000" >> /etc/rsyslog.conf 重启r

cws1214的专栏 1088

linux服务日志配置分析

开发者在选择设施时,应根据应用程序的性质和用途选择最合适的设施。例如,邮件相关的服务通常使用LOG_MAIL。使用标准设施可以使得系统管理员更容易地通过配置文件(例如 rsyslog 的),来筛选和管理日志。

酌沧 2349

rsyslog配置文件详解(常用的详解,很少用的翻官网罢)--适用v7/v8版本

rsyslog工具v7/v8版本配置文件详解

Vantler的博客 2万+

linux日志缺失排查流程

当 rsyslog 依赖imuxsock模块进行日志接收时,若长时间无日志输出,通常意味着日志在产生、传递或处理过程中出现了中断。此类问题需结合 Linux 日志流转机制进行系统性排查。以下将详细解析imuxsock的工作原理、常见故障原因及相应的排查步骤。

2501_93078354的博客 842

玩转OurBMC第五期:深入探索BMC日志管理模块(下)

上期内容聚焦于 BMC 日志管理框架与 systemd-journald 模块的介绍,本期将继续通过对实际案例的剖析,深入探讨 BMC 日志管理模块中 rsyslog 模块 和 logrotate 工具 的具体作用,并展示其在日常运维中的实际应用操作。旨在帮助各位读者更好地理解和使用 BMC 日志管理模块,为服务器的稳定运行和故障排查提供有力支持。

OurBMC的博客 2103

rsyslog不记日志问题分析记录(1)

实际工作中用到了rsyslog来做本地日志的记录工具。但在实际使用过程中,偶尔会出现日志写着写着,就不记日志的情况。具体原因是因为,rsyslog监听的/dev/log的端口变了,但是使用记录日志的程序,对应的域socket监听的端口没有变。具体的可见以下的分析内容。 以下是第一阶段的分析报告。 glibc版本:glibc-2.17-222.el7.x86_64 rsyslog...

jikunbupt的专栏 5342

begin to drop messages due to rate-limiting

对于syslog保存的日志会有很多重要信息,但是一旦打印的日志数量超过设置的阈值,就会丢掉(imuxsock[pid 48]: begin to drop messages due to rate-limiting);这是在调试时不愿看到的;可以通过以下方式解除这个限制: 1. 编辑/etc/systemd/journald.conf文件 #RateLimitInterval=30s #RateLimitBurst=1000 改为(表示30s内打印不超过1000行,设置为0取消...

ajuse的博客 4431

解决rsyslogd日志丢失

最近发现跑keepalived的几台机器的日志总是打印不完,还好给抛了一个报错,信息如下:[root@yw_lvs2_backup etc]# tail -n 1000000 /var/log/messages-20130526 | grep "rate-limiting" May 20 11:43:55 yw_lvs2_backup rsyslogd-2177: imuxs...

weixin_33772645的博客 629

message显示rsyslog日志服务警告信息due to rate-limiting

/var/log/message日志大量这样的提示信息。应该rsyslog的配置记录超过最大值,修改syslog的配置文件来解决。Apr2316:11:53kkmailrsyslogd-2177:imuxsockbeginstodropmessagesfrompid2002duetorate-limiting Apr2316:11:57kk...

weixin_34007906的博客 1991

linux限制message日志大小,message显示rsyslog日志服务警告信息due to rate-limiting

/var/log/message日志大量这样的提示信息。应该rsyslog的配置记录超过最大值,修改syslog的配置文件来解决。Apr2316:11:53kkmailrsyslogd-2177:imuxsockbeginstodropmessagesfrompid2002duetorate-limitingApr2316:11:57kkmailrsyslog...

weixin_28702105的博客 2622

php log日志管理,Linux系统日志管理:(4)rysylog日志服务、日志服务器以及日志转储...

============================================RHEL 6.x 搭建rsyslog日志服务器和loganalyzer日志分析工具===============================================rsyslog的介绍logrotate日志滚动的介绍rsyslog的存储途径基于web的loganalyzer日志分析工具的搭建====...

weixin_35914648的博客 474

rsyslog服务测试

rsyslog ###severity <pre> Numerical Code Severity Description 0 emerg system is unusable 1 alert action must be taken immediately 2 crit...

chenqinggang1686的博客 968

应用程序的日志使用rsyslog传送

rsyslog默认只可以传送系统的日志,比如DHCP,cron等,现在要传送一个服务的日志到远端的rsyslog服务器,该怎么实现呢?解决方法:要使用rsyslog的imfile模块。参考官方url:http://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html参考网上url:http://www....

weixin_34343308的博客 527

rsyslog日志服务器搭建

第1章 简介1.1 Rsyslog介绍 rsyslog是比syslog功能更强大的日志记录系统,可以将日志输出到文件,数据库和其它程序。ryslog 是一个快速处理收集系统日志的程序,提供了高性能、安全功能和模块化设计。rsyslogsyslog 的升级版,它将多种来源输入输出转换结果到目的地,并可定制和过滤、筛选。据官网介绍,现在可以处理100万条信息。特性:1、可以...

weixin_34387284的博客 1055
上一篇: 关于C++ 引用
下一篇: Compiling, Linking and Debugging Tips for C++
amyeric
博客等级 码龄19年 10粉丝 18原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值