【问题标题】:Logging to syslog记录到系统日志
【发布时间】:2012-01-09 13:00:04
【问题描述】:

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

这听起来像是 syslog 服务器需要更改配置。谁能给点指导,有人遇到过类似的问题吗?是否有任何配置,为 syslog 服务器提供以增加日志限制?

【问题讨论】:

    标签: logging syslog ibm-datapower


    【解决方案1】:

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

    Truncated syslog messages

    以下是增加消息长度的步骤 以 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
    

    【讨论】:

      猜你喜欢
      • 2014-10-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-10
      • 1970-01-01
      • 2021-07-20
      • 2011-10-26
      相关资源
      最近更新 更多