rsyslog的配置文件:/etc/rsyslog.confphp
#Provides UDP syslog reception #$ModLoad imudp #$UDPServerRun 514 或者 #Provides TCP syslog reception #$ModLoad imtcp #$InputTCPServerRun 514
#### MODULES #### $ModLoad ommysql
#### RULES #### facility.priority :ommysql:SERVER_IP,DATABASE,USERNAME,PASSWORD