rsyslog接收以TCP丟來的syslog斷行的問題 - Linux

By Gilbert
at 2016-03-01T14:12
at 2016-03-01T14:12
Table of Contents
手邊環境是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的話應如何修正?感謝!
--
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的話應如何修正?感謝!
--
Tags:
Linux
All Comments
Related Posts
請問 Ubuntu 14.04 筆電上的省電方法

By Michael
at 2016-03-01T10:47
at 2016-03-01T10:47
包含換行符的文字處理

By Lily
at 2016-02-29T21:04
at 2016-02-29T21:04
virtualbox ubuntu 灌ssh不能用

By Zenobia
at 2016-02-29T20:06
at 2016-02-29T20:06
請問at可以找到之前輸入的內容嗎?

By Quintina
at 2016-02-29T19:06
at 2016-02-29T19:06
安裝tar.gz

By Caroline
at 2016-02-29T16:34
at 2016-02-29T16:34