记录到系统日志

发布于 2024-12-25 14:12:05 字数 214 浏览 4 评论 0原文

我有一个 syslog 目标,速率限制为 1000 个事件/秒,用于错误优先级。我有另一个日志目标,目标类型为文件,用于错误优先级。我遇到的问题是,系统日志中有一个字段(加密后的响应有效负载)被截断。我使用 xsl:message 进行日志记录。记录到文件中的消息

听起来像是系统日志服务器需要进行配置更改。谁能提供一些指导吗?有人遇到过类似的问题吗?系统日志服务器是否有任何配置可以增加日志限制?

I have a syslog target, with rate limit 1000 events/second, for error priority. I have another log target, target type as file, for error priority. The problem I have, there is one field(response payload after encryption) that gets truncated, within syslog. I use xsl:message for logging. The messages logged to the file

It sounds like a configuration change needed for the syslog server. Could anyone please give some guidance, anyone faced a similar issue? Any configuration, present for syslog server to increase the limit for logs?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

知你几分 2025-01-01 14:12:05

添加到它,发现此链接对于 syslogd 很有用,可以支持更长的 syslog 消息。

截断的系统日志消息

以下是增加消息长度的步骤
作为 root,请按照以下简单步骤操作:

This is pretty safe, but just in case: cp -p /usr/sbin/syslogd /usr/sbin/syslogd.bak
cd /usr/src/usr.sbin/syslogd/
vi syslogd.c
find this line in that file (line 71 for me):

#define MAXLINE 1024 /* maximum line length */

... and change '1024' to the value you need (maybe 2048 or 4096).
make obj && make depend && make && make install
/etc/rc.d/syslogd restart

Adding to it, found this link useful for syslogd, for supporting longer syslog messages.

Truncated syslog messages

The below are the steps for icreasing the message length
As root, follow these simple steps:

This is pretty safe, but just in case: cp -p /usr/sbin/syslogd /usr/sbin/syslogd.bak
cd /usr/src/usr.sbin/syslogd/
vi syslogd.c
find this line in that file (line 71 for me):

#define MAXLINE 1024 /* maximum line length */

... and change '1024' to the value you need (maybe 2048 or 4096).
make obj && make depend && make && make install
/etc/rc.d/syslogd restart
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文