{"id":170,"date":"2018-11-04T13:29:29","date_gmt":"2018-11-04T10:29:29","guid":{"rendered":"https:\/\/artem.services\/?p=170"},"modified":"2018-11-04T21:36:56","modified_gmt":"2018-11-04T18:36:56","slug":"kibana","status":"publish","type":"post","link":"https:\/\/artem.services\/?p=170","title":{"rendered":"Kibana &#8212; \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"size-full wp-image-230 aligncenter\" src=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1.png\" alt=\"\" width=\"2606\" height=\"839\" srcset=\"https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1.png 2606w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1-300x97.png 300w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1-768x247.png 768w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1-1024x330.png 1024w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1-954x307.png 954w, https:\/\/artem.services\/wp-content\/uploads\/2018\/11\/Kibana-Logo-1-1354x436.png 1354w\" sizes=\"(max-width: 2606px) 100vw, 2606px\" \/><\/p>\n<p>\u0423 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c <a href=\"https:\/\/artem.services\/?p=167\" target=\"_blank\" rel=\"noopener\">\u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 Elastisearch<\/a>, \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c <strong>Kibana<\/strong>.<\/p>\n<p>\u0415\u0441\u043b\u0438 Elasticsearch \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0442\u043e \u043a\u043b\u044e\u0447 \u0435\u0433\u043e \u0438 \u0441\u0430\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b, \u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 \u0438\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nrpm --import https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\n<\/pre>\n<p>\u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u0430\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 (\u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f <strong>Elasticsearch\/Kibana<\/strong> \u0431\u044b\u043b\u0430 <strong>6.4<\/strong>)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncat &gt; \/etc\/yum.repos.d\/elasticsearch.repo &lt;&lt; EOF\r\n[elasticsearch-6.x]\r\nname=Elasticsearch repository for 6.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/6.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=1\r\nautorefresh=1\r\ntype=rpm-md\r\nEOF\r\n<\/pre>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 <strong>Kibana<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nyum install -y kibana\r\n<\/pre>\n<p><!--more--><\/p>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 <strong>CentOS 7<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl enable kibana\r\n<\/pre>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u0434\u0435\u043b\u0430\u043b\u0438 \u044d\u0442\u043e \u043d\u0430 <strong>AWS<\/strong>, \u043d\u0430 \u0430\u043c\u0430\u0437\u043e\u043d\u043e\u0432\u0441\u043a\u043e\u043c \u043e\u0431\u0440\u0430\u0437\u0435 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 <strong>CentOS<\/strong>&#39;\u0430 \u0431\u0435\u0437 <strong>systemd<\/strong> (<strong>Amazon Linux AMI 2018.03<\/strong>), \u0442\u043e \u043f\u043e \u0441\u0442\u0430\u0440\u0438\u043d\u043a\u0435 \u0447\u0435\u0440\u0435\u0437 <strong>chkconfig<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchkconfig kibana on\r\n<\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nchkconfig | grep kibana\r\nkibana 0:off 1:off 2:on 3:on 4:on 5:on 6:off\r\n<\/pre>\n<p>\u0417\u0430\u043f\u0443\u0441\u0442\u0438\u043c <strong>Kibana<\/strong>:<\/p>\n<p><strong>systemd<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nsystemctl start kibana\r\n<\/pre>\n<p><strong>SysV<\/strong>:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nservice kibana start\r\n<\/pre>\n<p>\u0423 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, <strong>Kibana<\/strong> \u043f\u0430\u0434\u0430\u043b\u0430 \u0438\u0437-\u0437\u0430 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u044f \u043f\u0430\u043c\u044f\u0442\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u044f \u0432\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043b \u043d\u0430 <strong>t2.micro<\/strong>, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u0435\u0449\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0442\u044c \u043f\u0430\u043c\u044f\u0442\u044c \u0434\u043b\u044f <strong>Elasticsearch<\/strong>.<\/p>\n<p>\u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e <strong>Kibana<\/strong> \u0441\u043b\u0443\u0448\u0430\u0435\u0442 <strong>localhost<\/strong> \u043d\u0430 \u043f\u043e\u0440\u0442\u0443 <strong>5601<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nnetstat -anp | grep :5601\r\n<\/pre>\n<p>\u041e\u0442\u043a\u0440\u043e\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nvim \/etc\/kibana\/kibana.yml\r\n<\/pre>\n<p>\u041d\u0430\u0445\u043e\u0434\u0438\u043c \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<pre>#server.host: \"localhost\"<\/pre>\n<p>\u041f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0435\u0435 \u043a \u0432\u0438\u0434\u0443:<\/p>\n<pre>server.host: 0.0.0.0<\/pre>\n<p>\u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 <strong>Kibana<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0443\u0448\u0430\u0442\u044c \u043f\u043e\u0440\u0442 <strong>5601<\/strong> \u043d\u0430 \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445. \u041c\u043e\u0436\u0435\u0442\u0435 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u0438\u0432\u0430\u0442\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0432 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u0435 \u0434\u043e\u0441\u0442\u0443\u043f \u0442\u043e\u043b\u044c\u043a\u043e \u0441 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0430\u0434\u0440\u0435\u0441\u043e\u0432, \u0442\u0430\u043a \u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c <strong>NginX<\/strong> \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u043e\u043a\u0441\u0438 \u0438 \u0437\u0430\u043f\u043e\u0440\u043e\u043b\u0438\u0442\u044c \u0435\u0433\u043e. \u0414\u043b\u044f \u0442\u0435\u0441\u0442\u0430 \u044f \u0443\u043a\u0430\u0437\u0430\u043b \u0432\u0441\u0435 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u044b.<\/p>\n<p>\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0431\u0440\u0430\u0443\u0437\u0435\u0440, \u0432\u0432\u043e\u0434\u0438\u043c<strong> IP<\/strong> \u0438\u043b\u0438 <strong>DNS<\/strong>, \u0438 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u043f\u043e\u0440\u0442 <strong>5601<\/strong>.<\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u043d\u0430\u0447\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 <strong>Kibana<\/strong>, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a\u0430\u043a\u0438\u0435-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 <strong>Elasticsearch<\/strong>. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncurl -X POST -H 'Content-Type: application\/json' http:\/\/localhost:9200\/artem-1\/message\/1 -d '{ &quot;message&quot;: &quot;First message.&quot; }'\r\ncurl -X POST -H 'Content-Type: application\/json' http:\/\/localhost:9200\/artem-2\/message\/1 -d '{ &quot;message&quot;: &quot;Second message.&quot; }'\r\ncurl -X POST -H 'Content-Type: application\/json' http:\/\/localhost:9200\/artem-3\/message\/1 -d '{ &quot;message&quot;: &quot;Third message.&quot; }'\r\n<\/pre>\n<p>\u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0435\u0440\u0432\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443. \u041e\u043d\u0430 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 \u0438\u043d\u0434\u0435\u043a\u0441 \u0441 \u0438\u043c\u0435\u043d\u0435\u043c &#39;<strong>artem-1<\/strong>&#39;, \u0442\u0438\u043f\u043e\u043c \u0434\u0430\u043d\u043d\u044b\u0445 &#39;<strong>message<\/strong>&#39; \u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435\u043c &quot;<strong>First message<\/strong>.&quot;, &#39;<strong>1<\/strong>&#39; &#8212; \u043f\u043e\u0440\u044f\u0434\u043a\u043e\u0432\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0437\u0430\u043f\u0438\u0441\u0438.<\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u0432 <strong>Kibana<\/strong> \u0441\u043e\u0437\u0434\u0430\u0442\u044c &quot;<strong>index pattern<\/strong>&quot;. \u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0444\u0438\u043b\u044c\u0442\u0440\u0430 \u0443\u043a\u0430\u0436\u0435\u043c &quot;<strong>artem-*<\/strong>&quot;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0423 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441 Elastisearch, \u0442\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c Kibana. \u0415\u0441\u043b\u0438 Elasticsearch \u0431\u044b\u043b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, \u0442\u043e \u043a\u043b\u044e\u0447 \u0435\u0433\u043e \u0438 \u0441\u0430\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 \u0443 \u0432\u0430\u0441 \u0443\u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u044b, \u0435\u0441\u043b\u0438 \u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0441 \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a\u0430 \u0438\u043b\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u043e\u0432, \u0442\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e: \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0441\u0430\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 (\u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u0430\u044f \u0432\u0435\u0440\u0441\u0438\u044f Elasticsearch\/Kibana \u0431\u044b\u043b\u0430 6.4) \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Kibana:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[28,36],"_links":{"self":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/170"}],"collection":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=170"}],"version-history":[{"count":12,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/artem.services\/index.php?rest_route=\/wp\/v2\/posts\/170\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/artem.services\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}