summaryrefslogtreecommitdiffstats
path: root/plugins/ompgsql/createDB.sql
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-12-03 10:23:39 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-12-03 10:23:39 +0000
commitf500fbf50508c9c82d343a8ef6196ca25447402c (patch)
treeb4ccdccccd0cfbd68260ae498e241a0ca5374bed /plugins/ompgsql/createDB.sql
parentf7e891bc9aba35044503445c856faf8a7b6b44b9 (diff)
downloadrsyslog-f500fbf50508c9c82d343a8ef6196ca25447402c.tar.gz
rsyslog-f500fbf50508c9c82d343a8ef6196ca25447402c.tar.xz
rsyslog-f500fbf50508c9c82d343a8ef6196ca25447402c.zip
added sur5r's postgres sql output module (many thanks!)
Diffstat (limited to 'plugins/ompgsql/createDB.sql')
-rw-r--r--plugins/ompgsql/createDB.sql37
1 files changed, 37 insertions, 0 deletions
diff --git a/plugins/ompgsql/createDB.sql b/plugins/ompgsql/createDB.sql
new file mode 100644
index 00000000..facdcaa0
--- /dev/null
+++ b/plugins/ompgsql/createDB.sql
@@ -0,0 +1,37 @@
+CREATE DATABASE "Syslog";
+\c Syslog;
+CREATE TABLE SystemEvents
+(
+ ID serial not null 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
+);
+
+CREATE TABLE SystemEventsProperties
+(
+ ID serial not null primary key,
+ SystemEventID int NULL ,
+ ParamName varchar(255) NULL ,
+ ParamValue text NULL
+);