2013年1月3日 星期四

[rsyslog][Server] How to use rsyslog and receive log from remote machine

[rsyslog] How to use rsyslog and receive log from remote machine

1. vi /etc/rsyslog.conf



# Provide UDP syslog reception

$ModLoad imudp

$UDPServerRun 512  # Can change port to 514



2. Restart rsyslog

sudo service rsyslog restart



Check 512 port open or not
Command :


netstat -uln



3. see where is file to save ( all message are save in /var/log/messages )

see /etc/rsyslog.d/50-default.conf



4. Send message to Remote Server

Ref [1


nc -w0 -u 192.168.1.200 512 <<< "happy"


Reference :



  1. Syslog: Sending log from remote servers to syslog daemon


  2. 活用rsyslog結合MySQL 實現日誌集中控管


  3. Getting arbitrary log files into Rsyslog


Related Posts:

  • [GIMP]物品發光效果 素材圖片: 1269354259.jpg (67.66 KB) 2011-6-10 12:25 AM 01. 打開素材圖片:『檔案(F)』>『開啟(O)』 02. 利用路徑工具把要發光的部份圍起來:『工具(T)』>『路徑(H)』 03. 把路徑轉為選擇區域:… Read More
  • [TFTP] Using TFTP download cer & key [TFTP] Using TFTP download cer & key #!/bin/sh echo "Enter MAC Address: " read MACAddress tftp_server='192.168.100.20' EU_cer… Read More
  • [vim] How to use visual block mode to insert test How to use visual block mode to insert test crtl+v (visual block mode) shift+i (insert) type text Press Esc button How to use visual block mode to d… Read More
  • [ MTA ] certification [ MTA ] certification MTA certification just EURO spec So put the right cert under the /etc/cert/mta/. iptel_root_euro.cer -> /etc/certs/mta/tcom… Read More
  • [Samba] Samba in Embedded SystemAdd source into /Porting/Source/APP/Software_Module/Samba/src Then tell the compile where to compile. Samba download from http://www.samba.org/ 1. A… Read More

0 意見:

張貼留言