[問題] rsyslog接收以TCP丟來的syslog斷行的問題

作者: LokiCjn (我的征途是星之海)   2016-03-01 14:12:22
手邊環境是CentOS 6.3
rsyslog 版本是5.8.10
由於這部log server要用來接收其他系統丟過來的syslog做處理
有發現若以TCP連線方式丟來過遇到像SQL Query內容有換行
就會就切成數行獨立的syslog message
雖然改UDP沒有這個狀況但是有長度限制的問題
有參考這篇找到關於rsyslog.conf的設定內容
http://www.rsyslog.com/doc/v5-stable/configuration/modules/imtcp.html
加入$InputTCPServerDisableLFDelimiter on 等設定仍然是無效
請教若一定要使用TCP的話應如何修正?感謝!

Links booklink

Contact Us: admin [ a t ] ucptt.com