1分钟
日志发送端
vim /etc/rsyslog.conf
#### MODULES ####
$ModLoad ommysql #添加ommysql模块
#### RULES ####
*.info;mail.none;authpriv.none;cron.none :ommysql:192.168.30.17,Syslog,syslog,centos
重启日志服务
systemctl restart rsyslog
模拟一条日志信息
logger “this is a test log”
切换回远程接收端
能看到刚刚发送的模拟日志信息
Mysql> select * from SystemEvents\G;
学员评价