rsyslog_dbCreate/createdb.sql

15 lines
361 B
SQL

CREATE DATABASE syslog;
USE syslog;
CREATE TABLE SystemEvents
(
ID int unsigned not null auto_increment primary key,
ReceivedAt datetime NULL,
DeviceReportedTime datetime NULL,
Facility smallint NULL,
Priority smallint NULL,
FromHost varchar(60) NULL,
Hostname varchar(60) NULL,
Message text,
SysLogTag varchar(60),
);