增加 syslogd 消息的大小

编程入门 行业动态 更新时间:2024-10-27 04:31:10
本文介绍了增加 syslogd 消息的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在尝试将脚本输出发送到 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屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 12:46:32,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1409326.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:大小   消息   syslogd

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!