iT邦幫忙

0

rsyslog server

大家好
請問fedora 11 linux的rsyslog server如何接收中文訊息後不會亂碼,如dlink分享器的log
問過dlink說沒法改成英文,dir-635分享器
另外windows 的log如何丟出給rsyslog server呢?如何做呢?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

6
逮丸逮丸
iT邦大師 1 級 ‧ 2010-10-07 08:13:42
最佳解答

一、
參考:
syslog-protocol support in rsyslog rsyslog 裡的
Conlusions/Suggestions 第二點:

As it is not possible to definitely know the character encoding of the application-provided message, MSG should not be specified to use UTF-8 exclusively. Instead, it is suggested that any encoding may be used but UTF-8 is preferred. To detect UTF-8, the MSG should start with the UTF-8 byte order mask of "EF BB BF" if it is UTF-8 encoded (see section 155.9 of http://www.unicode.org/versions/Unicode4.0.0/ch15.pdf)

看起來是說,所送的資料是要符utf-8的編碼,
所以要確認dlink送出來的是big5或是utf-8?

二、
免費的做法,可參考:
Syslog and Windows 的作法,
簡而言之,裝NTsyslog
但該程式是裝成 服務的型式,
該作者找到用 Inno Setup 可包成安裝檔來安裝。
然後再依該文指示來設Linux來接windows送來的log。

其他也可參考看看:
http://syslog-win32.sourceforge.net

若覺得太麻煩的話,就可能需要花錢買商業版的產品,
但功能可能又太多而不見得用得到。

新二君 iT邦新手 2 級 ‧ 2010-10-07 12:51:06 檢舉

後來大去dlink再詢問一次,他們自己也搞不清楚是甚麼big5或utf-8
真是給它QQ~只好想其他辦法囉
謝謝大大提供的NTSYSLOG資訊這樣了解如何製作囉~

2
cmwang
iT邦大師 1 級 ‧ 2010-10-07 13:02:37

1:DIR-635應該有英文版的firmware,燒成英文版後送給syslog server的訊息總不會再有非英語系的吧....

2:讓syslog server收網路進來的log有一定的風險(主要是syslog request是UDP的,很容易偽造,換句話說就是可能會被DoS),如果是在同一個LAN就算了,不過最好還是在gateway上把incoming request濾掉....

我要發表回答

立即登入回答