<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) -------&gt; <b>send</b> to a syslog-relay ---------&gt;<b> forword</b> to a syslog server ----&gt; centralise in a mysql tabe &#39;logs&#39;<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 =&#39;<b>Notice</b>&#39; and level=&#39;<b>Notic</b>e&#39; but in the message i find <b>[warn]</b><br><br><br>here is an exemple:<br>INSERT INTO `syslogtopnet`.`log` VALUES  (320,&#39;192.168.9.195&#39;,&#39;user&#39;,<b>&#39;notice&#39;</b>,<b>&#39;notice&#39;</b>,&#39;2009-05-19&#39;,&#39;19:33:24&#39;,&#39;&#39;,&#39;[Tue May 19 19:33:24 2009] <b>[warn]</b> Init: Session Cache is not configured [hint: SSLSessionCache]&#39;);<br>

INSERT INTO `syslogtopnet`.`log` VALUES  (24445,&#39;192.168.9.197&#39;,&#39;user&#39;,&#39;notice&#39;,&#39;notice&#39;,&#39;2009-06-04&#39;,&#39;17:21:02&#39;,&#39;090604&#39;,&#39;090604 17:21:02  mysqld started&#39;),<br>
 (24446,&#39;192.168.9.197&#39;,&#39;user&#39;,&#39;notice&#39;,&#39;notice&#39;,&#39;2009-06-04&#39;,&#39;17:21:02&#39;,&#39;090604&#39;,&#39;090604 17:21:02  mysqld started&#39;),<br> (24447,&#39;192.168.9.197&#39;,&#39;user&#39;,<b>&#39;notice&#39;</b>,<b>&#39;notice&#39;</b>,&#39;2009-06-04&#39;,&#39;17:21:02&#39;,&#39;InnoDB&#39;,&#39;InnoDB: Unable to lock ./ibdata1, <b>error: 11</b>&#39;),<br>
 <br>i discovered that apache log level are different then syslog&#39;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>