[syslog-ng] Mysql Syslog Data

John Hala john.hala at villanova.edu
Fri Sep 14 04:24:02 CEST 2007


So I have my syslogs going to a mysql database.  What are some recommended ways to make this data useful?

Here's how I created the table:

CREATE TABLE syslog (
host varchar(32) default NULL,
facility varchar(10) default NULL,
priority varchar(10) default NULL,
level varchar(10) default NULL,
tag varchar(10) default NULL,
date date default NULL,
time time default NULL,
program varchar(15) default NULL,
msg text,
seq int(10) unsigned NOT NULL auto_increment,
PRIMARY KEY (seq),
KEY host (host),
KEY seq (seq),
KEY program (program),
KEY time (time),
KEY date (date),
KEY priority (priority),
KEY facility (facility)
) TYPE=MyISAM;


More information about the syslog-ng mailing list