by noggin143 » Sun Mar 02, 2008 9:14 pm
The sqlite3 support via libdbi required a number of changes and set ups using the 0.8.3 code base.
1. The sqlite3 libraries require an sqlite3_dbdir variable to be on the connection. There does not seem to be a mechanism for doing this via the parameter data in rsyslog.cond.
2. There is no sample creation script for the libdbi databases, so it was necessary to adapt one of the CreateDB scripts to support this. I ended up with
CREATE TABLE SystemEvents
(
ID serial primary key,
CustomerID bigint,
ReceivedAt timestamp without time zone NULL,
DeviceReportedTime timestamp without time zone NULL,
Facility smallint NULL,
Priority smallint NULL,
FromHost varchar(60) NULL,
Message text,
NTSeverity int NULL,
Importance int NULL,
EventSource varchar(60),
EventUser varchar(60) NULL,
EventCategory int NULL,
EventID int NULL,
EventBinaryData text NULL,
MaxAvailable int NULL,
CurrUsage int NULL,
MinUsage int NULL,
MaxUsage int NULL,
InfoUnitID int NULL ,
SysLogTag varchar(60),
EventLogType varchar(60),
GenericFileName VarChar(60),
SystemID int NULL
);