I looked at the KB article and i did not find a resolution for the issue or any other discussion.
I setup phpLogCon to connect to an existing mysql database for my rsyslog server. This is a Centos 5 machine with rsyslog 2.0.
Here is the rsyslog.conf
- Code: Select all
$ModLoad MySQL
*.* >mysql-server,syslog,syslog_writer,password
Here is the create statement for the systemevents table:
- Code: Select all
CREATE TABLE `syslog`.`systemevents` (
`ID` int(10) unsigned NOT NULL auto_increment,
`CustomerID` bigint(20) default NULL,
`ReceivedAt` datetime default NULL,
`DeviceReportedTime` datetime default NULL,
`Facility` smallint(6) default NULL,
`Priority` smallint(6) default NULL,
`FromHost` varchar(60) default NULL,
`Message` text,
`NTSeverity` int(11) default NULL,
`Importance` int(11) default NULL,
`EventSource` varchar(60) default NULL,
`EventUser` varchar(60) default NULL,
`EventCategory` int(11) default NULL,
`EventID` int(11) default NULL,
`EventBinaryData` text,
`MaxAvailable` int(11) default NULL,
`CurrUsage` int(11) default NULL,
`MinUsage` int(11) default NULL,
`MaxUsage` int(11) default NULL,
`InfoUnitID` int(11) default NULL,
`SysLogTag` varchar(60) default NULL,
`EventLogType` varchar(60) default NULL,
`GenericFileName` varchar(60) default NULL,
`SystemID` int(11) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=15240 DEFAULT CHARSET=latin1;
What do I need to do to get the data fields mapped correctly?


