增加 syslogd 消息的大小 [英] Increase size of syslogd messages

查看:30
本文介绍了增加 syslogd 消息的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将脚本输出发送到 syslogd 文件.由于脚本输出较大,因此分为2-3条syslog消息,每条消息大小为1024.

I am trying to send a script output to syslogd file. As the script output is large, its is split into 2-3 syslog messages, size of each message is 1024.

那么,我可以增加消息的大小吗?我可以增加的最大尺寸是多少?

So, can I increase the size of the message? And what is the maximum size will I be able to increase?

提前致谢.

推荐答案

syslog-ng 的最新版本使用 8192 字节的最大消息大小限制,因此如果您的脚本没有断行,您不应该任何问题.对于旧版本,增加syslog-ng中log-msg-size()选项的值

recent versions of syslog-ng use a 8192-byte limit to the maximal message size, so if your script does not break the lines, you shouldn't have any problems. For older versions, increase the value of the log-msg-size() option in syslog-ng

这篇关于增加 syslogd 消息的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆