rsyslog_dbCreate/createdb.sql

15 lines
361 B
MySQL
Raw Normal View History

2022-02-22 22:24:30 +01:00
CREATE DATABASE syslog;
USE syslog;
2022-02-22 21:11:06 +01:00
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,
2022-02-22 21:44:43 +01:00
Hostname varchar(60) NULL,
2022-02-22 21:11:06 +01:00
Message text,
SysLogTag varchar(60),
);