{"id":213519,"date":"2014-02-23T01:52:02","date_gmt":"2014-02-22T21:52:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=213519"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=213519","title":{"rendered":"<span class=\"post_title\">\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 LogAnalyzer \u0438 Rsyslog<\/span>"},"content":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/6f4\/303\/af9\/6f4303af983a2b76340767122fc7f610.png\"\/><\/p>\n<p>  \u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0438 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u042f \u043e\u043f\u0438\u0448\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0432\u0435\u0431-\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0449\u0438\u043a\u0430 \u043b\u043e\u0433\u043e\u0432 LogAnalyzer, Rsyslog-\u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u043e\u0433\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 Rsyslog-\u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0431\u0443\u0434\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0432 \u0431\u0430\u0437\u0443 MySQL.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u041e\u0421 \u044f \u0432\u044b\u0431\u0440\u0430\u043b Ubuntu 12.04. <\/p>\n<p>  \u0410\u0434\u0440\u0435\u0441\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0432\u0435\u0431\u043d\u043e\u0434:<br \/>  <b>192.168.1.51<\/b> (loganalyzer-mysql.ip) \u2014 Rsyslog-\u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u044d\u0442\u043e\u043c \u0445\u043e\u0441\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d LogAnalyzer<br \/>  <b>192.168.1.50<\/b> (loganalyzer-mongo.ip) \u2014 Rsyslog-\u043a\u043b\u0438\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 loganalyzer-mysql.ip<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c <a href=\"http:\/\/http:\/\/www.rsyslog.com\/ubuntu-repository\/\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 Rsyslog<\/a>:<\/p>\n<pre><code class=\"bash\">... # Adiscon stable repository deb http:\/\/ubuntu.adiscon.com\/v7-stable precise\/ deb-src http:\/\/ubuntu.adiscon.com\/v7-stable precise\/ ... <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AEF0CF8E # gpg --export --armor AEF0CF8E | sudo apt-key add -<\/code><\/pre>\n<p><a name=\"habracut\"><\/a><br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u043c\u043e\u0436\u043d\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u0435\u0440\u0441\u0438\u0435\u0439 Rsyslog, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0430 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f\u0445, \u043e\u0434\u043d\u0430\u043a\u043e \u0443 \u043c\u0435\u043d\u044f \u0438\u043c\u0435\u043b\u0430\u0441\u044c <a href=\"https:\/\/bugs.launchpad.net\/ubuntu\/+source\/rsyslog\/+bug\/789174\">\u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0435\u043c 514 TCP-\u043f\u043e\u0440\u0442\u0430 \u043e\u0442 \u0438\u043c\u0435\u043d\u0438 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f syslog<\/a>.<\/p>\n<p>  \u041e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Rsyslog \u0441 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0430\u043a\u0435\u0442\u0430\u043c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0443\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b:<\/p>\n<pre><code class=\"bash\"># apt-get update # apt-get install rsyslog rsyslog-mysql mysql-server mysql-client<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u044f \u0443\u0436\u0435 \u0441\u043a\u0430\u0437\u0430\u043b \u0432\u044b\u0448\u0435, \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u043b\u043e\u0433\u043e\u0432 \u0432 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e MySQL \u0431\u0430\u0437\u0443. \u0422\u0430\u043a\u0436\u0435 \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0432\u0435\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u041f\u0430\u043a\u0435\u0442 rsyslog-mysql \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0438 \u0431\u0430\u0437\u044b \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0431\u0443\u0434\u0443\u0449\u0438\u0445 \u043b\u043e\u0433\u043e\u0432:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/209\/e03\/07b\/209e0307b71d71149dcb99a8d99ca83d.png\"\/><\/p>\n<p>  \u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445. \u0421 \u0435\u0433\u043e \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043b\u0438\u0442\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0431\u0430\u0437\u044b rsyslog:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/194\/334\/5da\/1943345dad2c07d440b229331dbbd768.png\"\/><\/p>\n<p>  \u0423\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043f\u0430\u0440\u043e\u043b\u044f \u0434\u043b\u044f \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f rsyslog \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/de7\/6a1\/e3c\/de76a1e3cf2d47626c4779be46a4659e.png\"\/><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0434\u0435\u043c\u043e\u043d\u0443 MySQL \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043e\u0432\u0430\u043b\u043e \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 \u2014 \u0442\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0449\u0438\u043a \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f root.<\/p>\n<p>  \u041a\u043e\u043d\u0435\u0447\u043d\u044b\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 Rsyslog \u0438 MySQL \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"bash\"># vim \/etc\/rsyslog.d\/mysql.conf  ### Configuration file for rsyslog-mysql ### Changes are preserved  $ModLoad ommysql *.* :ommysql:localhost,Syslog,rsyslog,p@ssw0rD<\/code><\/pre>\n<p>  <b>*. *<\/b> \u2014 \u0417\u0430\u043f\u0438\u0441\u044c \u0432\u0441\u0435\u0445 \u043b\u043e\u0433\u043e\u0432 \u0432 \u0431\u0430\u0437\u0443<br \/>  <b>ommysql<\/b> \u2014 \u043c\u043e\u0434\u0443\u043b\u044c, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e rsyslog \u0431\u0443\u0434\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 MySQL<br \/>  <b>Syslog<\/b> \u2014 \u0438\u043c\u044f \u0431\u0430\u0437\u044b<br \/>  <b>rsyslog<\/b> \u2014 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c, \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u0431\u0430\u0437\u0443 Syslog<br \/>  <b>p@ssw0rD <\/b> \u2014 \u043f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f rsyslog<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0435\u043c rsyslog \u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0431\u0430\u0437\u0443:<\/p>\n<pre><code class=\"sql\">mysql&gt; show databases; +--------------------+ | Database           | +--------------------+ | information_schema | | Syslog             | | mysql              | | performance_schema | | test               | +--------------------+  mysql&gt; use Syslog;  mysql&gt; show tables; +------------------------+ | Tables_in_Syslog       | +------------------------+ | SystemEvents           | | SystemEventsProperties | +------------------------+  mysql&gt; select * from SystemEvents limit 2 \\G *************************** 1. row ***************************                 ID: 1         CustomerID: NULL         ReceivedAt: 2014-02-11 04:22:52 DeviceReportedTime: 2014-02-11 04:22:52           Facility: 5           Priority: 6           FromHost: loganalyzer            Message:  [origin software=&quot;rsyslogd&quot; swVersion=&quot;8.1.5&quot; x-pid=&quot;11992&quot; x-info=&quot;http:\/\/www.rsyslog.com&quot;] start ...         InfoUnitID: 1          SysLogTag: rsyslogd:       EventLogType: NULL    GenericFileName: NULL           SystemID: NULL *************************** 2. row ***************************                 ID: 2         CustomerID: NULL         ReceivedAt: 2014-02-11 04:22:52 DeviceReportedTime: 2014-02-11 04:22:52           Facility: 5           Priority: 6           FromHost: loganalyzer            Message: rsyslogd's groupid changed to 103 ...         InfoUnitID: 1          SysLogTag: rsyslogd:       EventLogType: NULL    GenericFileName: NULL           SystemID: NULL 2 rows in set (0.00 sec)  mysql&gt; <\/code><\/pre>\n<p>  \u041f\u043e\u0445\u043e\u0436\u0435, \u0447\u0442\u043e \u043b\u043e\u0433\u0438 \u043f\u0438\u0448\u0443\u0442\u0441\u044f, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u043f\u0440\u0438\u0435\u043c \u043b\u043e\u0433\u043e\u0432 \u043e\u0442 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0445\u043e\u0441\u0442\u0430. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u043d\u0430 Rsyslog-\u0441\u0435\u0440\u0432\u0435\u0440\u0435, \u0442.\u0435. \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u043d\u0435 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u043b\u0438 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"bash\"># vim \/etc\/rsyslog.conf ... $ModLoad imudp $UDPServerRun 514  # provides TCP syslog reception $ModLoad imtcp $InputTCPServerRun 514 ...<\/code><\/pre>\n<p>  \u041f\u0435\u0440\u0435\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0441\u043b\u0443\u0436\u0431\u0443 rsyslog. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c 514-\u0435 \u043f\u043e\u0440\u0442\u044b UDP \u0438 TCP \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u043a\u0440\u044b\u0442\u044b \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u043b\u043e\u0433\u043e\u0432.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 Loganalyzer. \u041e\u043d \u0431\u0443\u0434\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u043d\u043e\u0434\u0443 \u0441 IP 192.168.1.51, \u0442\u043e \u0435\u0441\u0442\u044c \u043d\u0430 \u043d\u043e\u0434\u0443 \u0441 Rsyslog-\u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0432\u0435\u0431-\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Apache, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0435\u0433\u043e \u0438 \u043f\u0430\u043a\u0435\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b LogAnalyzer-\u0430:<\/p>\n<pre><code class=\"bash\"># aptitude install apache2 libapache2-mod-php5 php5-mysql php5-gd<\/code><\/pre>\n<p>  \u0421\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 Loganalyzer, \u0440\u0430\u0441\u043f\u0430\u043a\u043e\u0432\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e, \u0441\u0442\u0430\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u043a\u0440\u0438\u043f\u0442\u044b:<\/p>\n<pre><code class=\"bash\"># mkdir \/tmp\/loganalyzer # cd \/tmp\/loganalyzer # wget http:\/\/download.adiscon.com\/loganalyzer\/loganalyzer-3.6.5.tar.gz # tar zxvf loganalyzer-3.6.5.tar.gz # mkdir \/var\/www\/loganalyzer # mv loganalyzer-3.6.5\/src\/* \/var\/www\/loganalyzer # mv loganalyzer-3.6.5\/contrib\/* \/var\/www\/loganalyzer  # chmod +x \/var\/www\/loganalyzer\/configure.sh \/var\/www\/loganalyzer\/secure.sh # .\/configure.sh && .\/secure.sh # chown -R www-data:www-data \/var\/www\/loganalyzer<\/code><\/pre>\n<p>  \u041d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044f\u044f \u0432\u0435\u0440\u0441\u0438\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0449\u0438\u043a\u0430 \u043b\u043e\u0433\u043e\u0432 Loganalyzer \u2014 3.6.5.<br \/>  \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0445\u043e\u0441\u0442, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c, \u043a\u0430\u043a \u043c\u0438\u043d\u0438\u043c\u0443\u043c, \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b ServerName \u0438 DocumentRoot:<\/p>\n<pre><code class=\"bash\"># cd \/etc\/apache2\/sites-available # cp default loganalyzer.conf # vim loganalyzer.conf<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"apache\">&lt;VirtualHost *:80&gt;         ServerAdmin webmaster@localhost          ServerName loganalyzer-mysql.ip   #&lt;&lt;---insert your domainname here          DocumentRoot \/var\/www\/loganalyzer  #&lt;&lt;---insert root directory of unpacked Loganalyzer         &lt;Directory \/&gt;                 Options FollowSymLinks                 AllowOverride None         &lt;\/Directory&gt;         &lt;Directory \/var\/www\/&gt;                 Options Indexes FollowSymLinks MultiViews                 AllowOverride None                 Order allow,deny                 allow from all         &lt;\/Directory&gt;          ScriptAlias \/cgi-bin\/ \/usr\/lib\/cgi-bin\/         &lt;Directory &quot;\/usr\/lib\/cgi-bin&quot;&gt;                 AllowOverride None                 Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch                 Order allow,deny                 Allow from all         &lt;\/Directory&gt;          ErrorLog ${APACHE_LOG_DIR}\/error.log          # Possible values include: debug, info, notice, warn, error, crit,         # alert, emerg.         LogLevel warn          CustomLog ${APACHE_LOG_DIR}\/access.log combined      Alias \/doc\/ &quot;\/usr\/share\/doc\/&quot;     &lt;Directory &quot;\/usr\/share\/doc\/&quot;&gt;         Options Indexes MultiViews FollowSymLinks         AllowOverride None         Order deny,allow         Deny from all         Allow from 127.0.0.0\/255.0.0.0 ::1\/128     &lt;\/Directory&gt;  &lt;\/VirtualHost&gt;<\/code><\/pre>\n<p>  \u0410\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u043c \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0439 \u0445\u043e\u0441\u0442, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0410\u043f\u0430\u0447:<\/p>\n<pre><code class=\"bash\"># a2ensite loganalyzer.conf # a2dissite 000-default # apachectl configtest # service apache2 restart<\/code><\/pre>\n<p>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0441\u0441\u044b\u043b\u043a\u0438 <a href=\"http:\/\/loganalyzer-mysql.ip\/install.php\">loganalyzer-mysql.ip\/install.php<\/a> (\u0432 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 loganalyzer-mysql.ip \u0447\u0435\u0440\u0435\u0437 \/etc\/hosts \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u043d \u043a IP-\u0430\u0434\u0440\u0435\u0441\u0443 192.168.1.51 ). \u041e\u0442\u0432\u0435\u0447\u0430\u0435\u043c \u043d\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/aa5\/899\/003\/aa5899003247854ce8e6f2dfb15e6658.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u0430\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044f\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/08c\/0bd\/462\/08c0bd462a477336072f0ab9b06aafdb.png\"\/><\/p>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u0431\u0430\u0437\u044b \u0438 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043e\u043f\u0446\u0438\u0439. \u0412\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0441\u044e\u0434\u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \/etc\/rsyslog.d\/mysql.conf \u043e \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u044f \u043f\u0438\u0441\u0430\u043b \u0432\u044b\u0448\u0435. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 MySQL.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/e09\/312\/0ee\/e093120eed81cbb7e11c0ae184066fd3.png\"\/><\/p>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043e\u0432 \u043a \u0431\u0430\u0437\u0435 \u043f\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u043e\u043c\u0443 \u043b\u043e\u0433\u0438\u043d\u0443\/\u043f\u0430\u0440\u043e\u043b\u044e \u0438 \u0437\u0430\u043b\u0438\u0432\u043a\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0442\u0430\u0431\u043b\u0438\u0446, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u0431\u0443\u0434\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c LogAnalyzer.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/3ae\/973\/808\/3ae973808f437bfd988331255c692f90.png\"\/><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0430\u0442\u043e\u0440\u0430 \u043a web-\u0438\u043d\u0442\u0440\u0435\u0440\u0444\u0435\u0439\u0441\u0443 LogAnalyzer.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/e90\/861\/e55\/e90861e5551abfcc49dde8a4ba0f1481.png\"\/><\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043b\u043e\u0433\u043e\u0432 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. LogAnalyzer \u0443\u043c\u0435\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430, \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445 MongoDB \u0438\u043b\u0438 MySQL. \u041e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u043e\u043f\u0446\u0438\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u0431\u0430\u0437\u0435 (\u0432\u0441\u0435 \u043f\u0438\u0448\u0435\u043c \u0432 \u0442\u043e\u0447\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u043a\u0440\u0438\u043d\u0448\u043e\u0442\u0435 \u043d\u0438\u0436\u0435, \u0440\u0435\u0433\u0438\u0441\u0442\u0440 \u0442\u0430\u043a\u0436\u0435 \u0432\u0430\u0436\u0435\u043d):<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/212\/ba1\/4c0\/212ba14c016b3ffff5f1a82d4a3d95d4.png\"\/><\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/a79\/bde\/dba\/a79bdedba68878d9323f23b1e983761d.png\"\/><\/p>\n<p>  \u0412\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e! \u041b\u043e\u0433\u0438\u043d\u0438\u043c\u043e\u0441\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043b\u043e\u0433\u0438\u043d\/\u043f\u0430\u0440\u043e\u043b\u044c.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/898\/617\/bb7\/898617bb71d9e405a3022eb482c8ab01.png\"\/><\/p>\n<p>  \u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 LogAnalyzer-\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/fd8\/c0a\/ecf\/fd8c0aecfea8a82d6a7de6ae3cf9abcd.png\"\/><\/p>\n<p>  \u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 Chrome \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043e\u0432\u0435\u0442\u0443\u044e \u0443\u0431\u0440\u0430\u0442\u044c \u0433\u0430\u043b\u043e\u0447\u043a\u0443 \u00abUse Popup to display the full message details\u00bb, \u0438\u043d\u0430\u0447\u0435 \u0431\u0443\u0434\u0443\u0442 \u0437\u0430\u043c\u0435\u0442\u043d\u044b \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0431\u0430\u0433\u0438:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/5e1\/8b3\/6d1\/5e18b36d194ab93a120dfa735e1a0e84.png\"\/><\/p>\n<p>  \u0421\u0435\u0439\u0447\u0430\u0441 LogAnalyzer \u043e\u0442\u0440\u0430\u0436\u0430\u0435\u0442 \u043b\u043e\u0433\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u0434\u043d\u043e\u0439 \u0445\u043e\u0441\u0442\u0430, \u0442\u043e \u0435\u0441\u0442\u044c \u0438\u043c\u0435\u043d\u043d\u043e \u0442\u0435\u200b, \u0447\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 rsyslog. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043e\u0442\u0441\u044b\u043b\u043a\u0438 \u043b\u043e\u0433\u043e\u0432 \u0441 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u0443\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433 rsyslog \u043d\u0430 \u0445\u043e\u0441\u0442\u0435 192.168.1.50 \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u043f\u0446\u0438\u044e:<\/p>\n<pre><code class=\"bash\"># vim \/etc\/rsyslog.conf ... *.* @@192.168.1.51 ...<\/code><\/pre>\n<p>  <b>*. *<\/b> \u2014 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0432\u0441\u0435\u0445 \u043b\u043e\u0433\u043e\u0432 \u043f\u043e \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u0438 \u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0445 \u043f\u0438\u0448\u0435\u0442.<br \/>  <b>@@<\/b> \u2014 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043f\u043e TCP<br \/>  <b>@ <\/b> \u2014 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043f\u043e UDP<br \/>  <b>192.168.1.51<\/b> \u2014 \u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0443\u0442 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u044b \u043b\u043e\u0433\u0438.<\/p>\n<p>  \u0418\u043d\u043e\u0433\u0434\u0430 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u0441\u0435\u0440\u0432\u0438\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0443\u043c\u0435\u044e\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0432 syslog. \u041f\u043e\u0442\u043e\u043c\u0443 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0430\u044f <a href=\"http:\/\/http:\/\/serverfault.com\/questions\/396136\/how-to-forward-specific-log-file-outside-of-var-log-with-rsyslog-to-remote-serv\">\u043f\u043e\u0434\u043e\u0431\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/a>:<\/p>\n<pre><code class=\"bash\"># vim \/etc\/rsyslog.d\/mongo.conf $ModLoad imfile $InputFileName \/var\/log\/mongodb\/mongodb.log $InputFileTag mongodb: $InputFileStateFile stat-mongo-error $InputFileSeverity error $InputFileFacility daemon $InputRunFileMonitor error.* @@192.168.1.50<\/code><\/pre>\n<p>  \u0412\u0441\u0435 \u0447\u0442\u043e \u0432 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438 \/etc\/rsyslog.d\/ \u0438 \u0441 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u0435\u043c conf \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \/etc\/rsyslog.conf. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u0431\u0443\u0434\u0443\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c\u0441\u044f \u043b\u043e\u0433\u0438 \u0438\u0437 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \/var\/log\/mongodb\/mongodb.log \u0438 \u043f\u043e\u043c\u0435\u0447\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a \u043e\u0448\u0438\u0431\u043a\u0438. \u0412\u0441\u0435 \u0447\u0442\u043e \u0432 \u0444\u0430\u0439\u043b\u0435 \/var\/log\/mongodb\/mongodb.log \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043e\u0441\u043b\u0430\u043d\u043e \u0432 \u043e\u0431\u0449\u0438\u0439 syslog \u0438 \u0438\u043c\u0435\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u0432\u0438\u0434:<\/p>\n<pre><code class=\"bash\">Feb 17 17:27:05 loganalyzer - mongo mongodb : Sun Feb 16 7:26:13 [ clientcursormon ] mem (MB ) res : 15 virt : 624 mapped : 0<\/code><\/pre>\n<p>  \u0418 \u0432\u043e\u0442 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u0432\u0438\u0434 LogAnalyzer-\u0430:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/9f7\/b77\/388\/9f7b773885db491cd394445d74b0e990.png\"\/><\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0431\u0430\u0437\u044b \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043b\u043e\u0433\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b. \u0418\u0434\u0435\u0430\u043b\u044c\u043d\u044b\u043c \u0432\u044b\u0431\u043e\u0440\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043d\u0435\u0440\u0435\u043b\u044f\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 MongoDB, \u0432\u0435\u0434\u044c \u0440\u0430\u0431\u043e\u0442\u0443 \u0441 \u043d\u0435\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u043a\u0430\u043a LogAnalyzer, \u0442\u0430\u043a \u0438 Rsyslog.<\/p>\n<p>  <b>C\u0441\u044b\u043b\u043a\u0438:<\/b><br \/>  <a href=\"http:\/\/www.k-max.name\/linux\/rsyslog-na-debian-nastrojka-servera\/\">www.k-max.name\/linux\/rsyslog-na-debian-nastrojka-servera\/<\/a><br \/>  <a href=\"http:\/\/rtfm.co.ua\/debian-log-syslog-mysql-loganalyzer\/\">rtfm.co.ua\/debian-log-syslog-mysql-loganalyzer\/<\/a><br \/>  <a href=\"http:\/\/www.unixmen.com\/install-and-configure-rsyslog-in-centos-6-4-rhel-6-4\/\">www.unixmen.com\/install-and-configure-rsyslog-in-centos-6-4-rhel-6-4\/<\/a><br \/>  <a href=\"http:\/\/terraltech.com\/syslog-server-with-rsyslog-and-loganalyzer\/\">terraltech.com\/syslog-server-with-rsyslog-and-loganalyzer\/<\/a><br \/>  <a href=\"http:\/\/rogovts.ru\/opensource\/rsysloganalyzer.html\">rogovts.ru\/opensource\/rsysloganalyzer.html<\/a><br \/>  <a href=\"http:\/\/lists.adiscon.net\/pipermail\/rsyslog\/2013-March\/031884.html\">lists.adiscon.net\/pipermail\/rsyslog\/2013-March\/031884.html<\/a><br \/>  <a href=\"http:\/\/loganalyzer.adiscon.com\/articles\/using-mongodb-with-rsyslog-and-loganalyzer\/\">loganalyzer.adiscon.com\/articles\/using-mongodb-with-rsyslog-and-loganalyzer\/<\/a><br \/>  <a href=\"http:\/\/www.rsyslog.com\/sending-messages-to-a-remote-syslog-server\/\">www.rsyslog.com\/sending-messages-to-a-remote-syslog-server\/<\/a>    \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/213519\/\"> http:\/\/habrahabr.ru\/post\/213519\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">   \t<img decoding=\"async\" src=\"http:\/\/habrastorage.org\/getpro\/habr\/post_images\/6f4\/303\/af9\/6f4303af983a2b76340767122fc7f610.png\"\/><\/p>\n<p>  \u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u044c\u043d\u044b\u0439 \u043b\u043e\u0433-\u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u0432\u0435\u0431-\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c \u0438 \u0432 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u0445\u043e\u0442\u0435\u043b \u0431\u044b \u043f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043b\u0435\u0437\u0435\u043d. \u042f \u043e\u043f\u0438\u0448\u0443 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0432\u0435\u0431-\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0449\u0438\u043a\u0430 \u043b\u043e\u0433\u043e\u0432 LogAnalyzer, Rsyslog-\u043a\u043b\u0438\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043b\u043e\u0433\u0438 \u043d\u0430 \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u044b\u0439 Rsyslog-\u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439, \u0432 \u0441\u0432\u043e\u044e \u043e\u0447\u0435\u0440\u0435\u0434\u044c, \u0431\u0443\u0434\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0438\u0445 \u0432 \u0431\u0430\u0437\u0443 MySQL.<\/p>\n<p>  \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u041e\u0421 \u044f \u0432\u044b\u0431\u0440\u0430\u043b Ubuntu 12.04. <\/p>\n<p>  \u0410\u0434\u0440\u0435\u0441\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0445 \u0432\u0435\u0431\u043d\u043e\u0434:<br \/>  <b>192.168.1.51<\/b> (loganalyzer-mysql.ip) \u2014 Rsyslog-\u0441\u0435\u0440\u0432\u0435\u0440, \u043d\u0430 \u044d\u0442\u043e\u043c \u0445\u043e\u0441\u0442\u0435 \u0442\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0438\u043d\u0441\u0442\u0430\u043b\u043b\u0438\u0440\u043e\u0432\u0430\u043d LogAnalyzer<br \/>  <b>192.168.1.50<\/b> (loganalyzer-mongo.ip) \u2014 Rsyslog-\u043a\u043b\u0438\u0435\u043d\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u0441\u044b\u043b\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 loganalyzer-mysql.ip<\/p>\n<p>  \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u043d\u0443\u044e \u0447\u0430\u0441\u0442\u044c, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c <a href=\"http:\/\/http:\/\/www.rsyslog.com\/ubuntu-repository\/\">\u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 Rsyslog<\/a>:<\/p>\n<pre><code class=\"bash\">... # Adiscon stable repository deb http:\/\/ubuntu.adiscon.com\/v7-stable precise\/ deb-src http:\/\/ubuntu.adiscon.com\/v7-stable precise\/ ... <\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"bash\"># apt-key adv --recv-keys --keyserver keyserver.ubuntu.com AEF0CF8E # gpg --export --armor AEF0CF8E | sudo apt-key add -<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-213519","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213519","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=213519"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/213519\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=213519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=213519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=213519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}