My config is as follows -
- Code: Select all
$ModLoad imudp
$UDPServerRun 514
$UDPServerRun 1514
$ModLoad ommysql.so
$template MySQLInsert,"INSERT INTO SystemEvents_%$DAY% (ReceivedAt,DeviceReportedTime,Facility,Priority,FromHost,Message,InfoUnitID,SysLogTag) VALUES ('%timegenerated:::date-mysql%','%timereported:::date-mysql%','%syslogfacility%','%syslogpriority%','%hostname%','%msg%','1','%syslogtag%')\r\n",stdsql
*.* :ommysql:127.0.0.1,logd,root,901jackson;MySQLInsert

