<div dir="ltr"><br><br><div class="gmail_quote"><br><br><br><div dir="ltr">Hi i a successfully configured a centralised syslog server using syslog-ng 2.09 here is the structure:<br><br>syslog-client(read mysql error log) -------> <b>send</b> to a syslog-relay ---------><b> forword</b> to a syslog server ----> centralise in a mysql tabe 'logs'<br>
<br>CREATE TABLE `syslogtopnet`.`log` (<br> `seq` int(10) unsigned NOT NULL auto_increment,<br> `host` varchar(60) NOT NULL,<br> `facility` varchar(40) NOT NULL,<br> `<b>priority</b>` varchar(40) NOT NULL,<br> `<b>level</b>` varchar(40) NOT NULL,<br>
`date_log` date NOT NULL,<br> `time_log` time NOT NULL,<br> `program` varchar(40) NOT NULL,<br> `<b>message</b>` text NOT NULL,<br> PRIMARY KEY (`seq`),<br> KEY `index_log` (`host`)<br>) ENGINE=InnoDB AUTO_INCREMENT=684 DEFAULT CHARSET=latin1;<br>
<br><br>my problème is : i find for exemple priority ='<b>Notice</b>' and level='<b>Notic</b>e' but in the message i find <b>[warn]</b><br><br><br>here is an exemple:<br>INSERT INTO `syslogtopnet`.`log` VALUES (320,'192.168.9.195','user',<b>'notice'</b>,<b>'notice'</b>,'2009-05-19','19:33:24','','[Tue May 19 19:33:24 2009] <b>[warn]</b> Init: Session Cache is not configured [hint: SSLSessionCache]');<br>
INSERT INTO `syslogtopnet`.`log` VALUES (24445,'192.168.9.197','user','notice','notice','2009-06-04','17:21:02','090604','090604 17:21:02 mysqld started'),<br>
(24446,'192.168.9.197','user','notice','notice','2009-06-04','17:21:02','090604','090604 17:21:02 mysqld started'),<br> (24447,'192.168.9.197','user',<b>'notice'</b>,<b>'notice'</b>,'2009-06-04','17:21:02','InnoDB','InnoDB: Unable to lock ./ibdata1, <b>error: 11</b>'),<br>
<br>i discovered that apache log level are different then syslog's so !!!!! <br><br>1 wired isnt it lease is there a solution to keep the same level in the original priority?<br><br>2 beside in more than 20589 line in my table priority and level have the same values. is it normal that the level and priority are the same how can this be? <br>
<br>thank you<br></div>
</div><br></div>