{"id":260154,"date":"2015-06-26T06:13:02","date_gmt":"2015-06-26T02:13:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=260154"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=260154","title":{"rendered":"ELK+R \u043a\u0430\u043a \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u043b\u043e\u0433\u043e\u0432 2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430"},"content":{"rendered":"<p>     \t\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043e\u0431 \u0441\u0432\u043e\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u0445 \u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043b\u043e\u0433\u043e\u0432 \u043d\u0430 ELKR \u043f\u0438\u0448\u0443 \u043d\u0435\u043a\u0438\u0439 \u00ab\u043c\u0430\u043d\u0443\u0430\u043b\u00bb \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435.<\/p>\n<p>  \u0422\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u041e\u0427\u0415\u041d\u042c \u043f\u043e\u043c\u043e\u0433\u043b\u0438:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/165059\/\">\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c, \u043f\u0430\u0440\u0441\u0438\u043c \u0438 \u043e\u0442\u0434\u0430\u0451\u043c \u043b\u043e\u0433\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Logstash<\/a> \u2014 \u043c\u0430\u0442\u0447\u0430\u0441\u0442\u044c<br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/maxifier\/blog\/216201\/\">\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043b\u043e\u0433\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Lumberjack+Logstash+Elasticsearch+RabbitMQ<\/a> \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0430\u0432\u0442\u043e\u0440\u0430\u043c!<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443:<br \/>  <i>Device =&gt; HAProxy =&gt; Logstash-Listener =&gt; RabbitMQ =&gt; Logstash-Filter =&gt; Elasticsearch-Balancer =&gt; Elasticsearch DATA\/MASTER<\/i><br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u042f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435 \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u043b \u043d\u0430 DevStack (\u0447\u0442\u043e \u0438\u0437\u0440\u044f\u0434\u043d\u043e \u0443\u043f\u0440\u043e\u0441\u0442\u0438\u043b\u043e \u0436\u0438\u0437\u043d\u044c), \u0412\u0430\u0448\u0438\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0447\u0442\u043e \u0443\u0433\u043e\u0434\u043d\u043e.<br \/>  \u0421\u0438\u0441\u0442\u0435\u043c\u0443 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u0432\u043e\u0437\u044c\u043c\u0451\u043c Ubuntu.<br \/>  \u041d\u0430 \u0432\u0441\u0435\u0445 \u043d\u043e\u0434\u0430\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d NTP.<br \/>  \u041d\u0430 \u043d\u043e\u0434\u0430\u0445 \u0441 Logstash \u0438 Elasticsearch \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d default-jre-headless<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 ES<\/h3>\n<p>  \u0414\u043b\u044f \u0432\u0441\u0435\u0445 ES \u043d\u043e\u0434:<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439  <\/p>\n<pre><code class=\"bash\">wget -qO - https:\/\/packages.elastic.co\/GPG-KEY-elasticsearch | sudo apt-key add -  echo &quot;deb http:\/\/packages.elastic.co\/elasticsearch\/1.6\/debian stable main&quot; | sudo tee -a \/etc\/apt\/sources.list  <\/code><\/pre>\n<p>  \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c elasticsearch \u043f\u0430\u043a\u0435\u0442  <\/p>\n<pre><code class=\"bash\">sudo apt-get update && sudo apt-get install elasticsearch  <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u043e\u043d\u0444\u0438\u0433\u0438.<\/p>\n<p>  \u0414\u043b\u044f Data \u043d\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">cluster.name: CLUSTER_NAME node.name: Data Node NAME node.data: true node.master: false index.number_of_shards: 2 index.number_of_replicas: 2 http.enabled: false path.data: \/PATH\/TO\/DATA\/DIR <\/code><\/pre>\n<p>  \u0414\u043b\u044f Master \u043d\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">cluster.name: CLUSTER_NAME node.name: Master Node NAME node.data: false node.master: true index.number_of_shards: 2 index.number_of_replicas: 2 http.enabled: false <\/code><\/pre>\n<p>  \u0414\u043b\u044f Balancer \u043d\u043e\u0434(\u044b):  <\/p>\n<pre><code class=\"bash\">cluster.name: CLUSTER_NAME node.name: Balancer Node NAME node.master: false node.data: false index.number_of_shards: 2 index.number_of_replicas: 2 http.port: 9200 <\/code><\/pre>\n<p>  CLUSTER_NAME \u2013 \u0438\u043c\u044f \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u044d\u0442\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e.<br \/>  NAME \u2013 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b hostname, \u043d\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u044e\u0431\u043e\u0435 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0435 \u0438\u043c\u044f.<br \/>  \/PATH\/TO\/DATA\/DIR \u2013 \u043f\u0443\u0442\u044c \u0434\u043e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u0438, \u0433\u0434\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \/usr\/share\/elasticsearch\/data.<\/p>\n<p>  \u0420\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0435\u043c \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443:  <\/p>\n<ul>\n<li>Data<\/li>\n<li>Master<\/li>\n<li>Balancer<\/li>\n<\/ul>\n<p>  \u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u0442\u0430\u043a \u0436\u0435 \u043f\u0440\u043e\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f:<br \/>  \u0421\u043e\u0437\u0434\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d <i>logstash-template.json<\/i>  <\/p>\n<pre><code class=\"javascript\">{     &quot;template&quot;: &quot;*&quot;,     &quot;settings&quot; : {         &quot;number_of_shards&quot; : 2,         &quot;number_of_replicas&quot; : 1     } } <\/code><\/pre>\n<p>  \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043d\u0430 ES-Balancer  <\/p>\n<pre><code class=\"bash\">curl -XPUT 'http:\/\/localhost:9200\/_template\/template_logstash\/' -d @logstash-template.json <\/code><\/pre>\n<p>  \u042d\u0442\u043e \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432. \u041a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0438\u043d\u0434\u0435\u043a\u0441 \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0441 2\u043c\u044f \u0448\u0430\u0440\u0434\u0430\u043c\u0438 \u0438 \u043e\u0434\u043d\u043e\u0439 \u0440\u0435\u043f\u043b\u0438\u043a\u043e\u0439. \u042d\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0434\u043b\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441 \u0434\u0432\u0443\u043c\u044f Data-\u043d\u043e\u0434\u0430\u043c\u0438.<br \/>  \u041e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u0431\u0443\u0434\u0435\u0442 <br \/>  <i>number_of_shards = \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u044f\u0434\u0435\u0440<br \/>  number_of_replicas = \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e data-\u043d\u043e\u0434(\u043a\u0440\u0430\u0442\u043d\u043e\u0435) \u2014 1<\/i><\/p>\n<p>  \u0422\u0430\u043a \u0436\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0432 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044c mobz\/elasticsearch-head. \u041d\u0430 ES-Balancer:  <\/p>\n<pre><code class=\"bash\">\/usr\/share\/elasticsearch\/bin\/plugin -install mobz\/elasticsearch-head <\/code><\/pre>\n<p>  \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c elasticsearch \u0441\u0435\u0440\u0432\u0438\u0441 \u043f\u043e\u0441\u043b\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u043e\u0432.<br \/>  \u0412\u0441\u0451! \u0413\u0434\u0435 \u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043b\u043e\u0433\u0438 \u043d\u0430\u043c \u0442\u0435\u043f\u0435\u0440\u044c \u0438\u0437\u0432\u0435\u0441\u0442\u043d\u043e.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 RabbitMQ<\/h3>\n<p>  \u0414\u0430\u043b\u0435\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Rabbimq-Server:  <\/p>\n<pre><code class=\"bash\">apt-get update && apt-get install rabbitmq-server -y rabbitmq-plugins enable rabbitmq_management && service rabbitmq-server restart rabbitmqctl set_policy ha-all &quot;.*&quot; '{&quot;ha-mode&quot;:&quot;all&quot;,&quot;ha-sync-mode&quot;:&quot;automatic&quot;}' <\/code><\/pre>\n<p>  \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0434\u043b\u044f \u043b\u043e\u0433\u0441\u0442\u0435\u0448\u0430, \u043d\u043e \u044d\u0442\u043e \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Logstash<\/h3>\n<p>  \u0414\u043b\u044f \u0432\u0441\u0435\u0445 \u043d\u043e\u0434:  <\/p>\n<pre><code class=\"bash\">wget -qO - https:\/\/packages.elasticsearch.org\/GPG-KEY-elasticsearch | sudo apt-key add -  echo &quot;deb http:\/\/packages.elasticsearch.org\/logstash\/1.5\/debian stable main&quot; | sudo tee -a \/etc\/apt\/sources.list  sudo apt-get update && sudo apt-get install logstash  <\/code><\/pre>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u0432 <i>\/etc\/logstash\/conf.d<\/i><\/p>\n<p>  \u0414\u043b\u044f Filter:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">config.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">input {  rabbitmq {   auto_delete =&gt; false   durable =&gt; true   exchange =&gt; &quot;logstash-exchange&quot;   exclusive =&gt; false   host =&gt; '1.1.1.1'   key =&gt; &quot;logstash-routing-key&quot;   password =&gt; &quot;guest&quot;   prefetch_count =&gt; 4   queue =&gt; &quot;logstash-filter&quot;   type =&gt; &quot;logstash-filter-input&quot;   user =&gt; &quot;guest&quot;   threads =&gt; 3   arguments =&gt; {&quot;x-ha-policy&quot; =&gt; &quot;all&quot;}  } }  # Filter all data filter {     if [type] == &quot;apache-access&quot; {         grok {            match =&gt; [ &quot;message&quot;, &quot;%{COMBINEDAPACHELOG}&quot; ]            add_field =&gt; [ &quot;severity&quot;, &quot;normal&quot; ]         }      } else if [type] == &quot;eventlog&quot; {         mutate {           update =&gt; { &quot;host&quot; =&gt; &quot;None&quot; }           add_field =&gt; { &quot;severity&quot; =&gt; &quot;None&quot; }         }      }      if [type] =~ &quot;apache&quot; {         mutate { add_field =&gt; { &quot;Message&quot; =&gt; &quot;%{message}&quot; }  }      }      if [type] == &quot;eventlog&quot; {         mutate { gsub =&gt; [ 'message', '[\\[\\]\\\\]', &quot;&quot;]  }         mutate { gsub =&gt; [ 'Message', ':', &quot;-&quot;]  }         mutate { gsub =&gt; [ 'Message', '&quot;', &quot;'&quot;]  }         json { source =&gt; &quot;message&quot;  }         mutate {           update =&gt; { &quot;host&quot; =&gt; &quot;%{Hostname}&quot; }           update =&gt; { &quot;severity&quot; =&gt; &quot;%{Severity}&quot; }             }         }      if [_jsonparsefailure] {         mutate {           update =&gt; { &quot;host&quot; =&gt; &quot;Unknown&quot; }           update =&gt; { &quot;severity&quot; =&gt; &quot;Unknown&quot; }             }       } }  # Output to elasticsearch balancer output {     elasticsearch {           cluster =&gt; &quot;CLUSTER_NAME&quot;           protocol =&gt; &quot;http&quot;           host =&gt; ['2.2.2.2']           index =&gt; &quot;logstash-%{+YYYY.MM.dd}&quot;     } } <\/code><\/pre>\n<p>  1.1.1.1 \u2013 IP \u0430\u0434\u0440\u0435\u0441 \u0442\u043e\u0447\u043a\u0438 \u0432\u0445\u043e\u0434\u0430 \u043a RabbiMQ. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e IP \u0440\u044d\u0431\u0431\u0438\u0442\u0430.<br \/>  2.2.2.2 \u2014 IP \u0430\u0434\u0440\u0435\u0441\u0441 ES-Balancer. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u044f\u0432\u043d\u043e\u0433\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u043a\u0430\u043a\u043e\u0439 \u0431\u0430\u043b\u0430\u043d\u0441\u0438\u0440\u043e\u0432\u0449\u0438\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0413\u0440\u044f\u0437\u043d\u044b\u0439 \u0445\u0430\u043a \u0441 eventlog \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431 \u043a\u0430\u043a-\u0442\u043e \u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c\u0441\u044f \u0441 \u043d\u0435\u0441\u043a\u043e\u043d\u0447\u0430\u0435\u043c\u044b\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0430\u0432\u044b\u0447\u0435\u043a \u0438 \u0441\u043b\u0435\u0448\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u043e\u043c\u0430\u044e\u0442 \u0432\u0441\u044e \u00ab\u043a\u0440\u0430\u0441\u043e\u0442\u0443\u00bb.  <\/div>\n<\/div>\n<p>  \u0414\u043b\u044f Listener:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">config.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"javascript\">input {         # Logstash to Logstash         lumberjack {                 codec =&gt; &quot;json&quot;                 port =&gt; 3333                 ssl_certificate =&gt; &quot;\/etc\/logstash\/ls.crt&quot;                 ssl_key =&gt; &quot;\/etc\/logstash\/ls.key&quot;         }          # Nxlog to Logstash         tcp {                 type   =&gt; &quot;eventlog&quot;                 port   =&gt; 3515                 codec =&gt; &quot;json&quot;         } }   output {     rabbitmq {        durable =&gt; true        exchange =&gt; &quot;logstash-exchange&quot;        key =&gt; &quot;logstash-routing-key&quot;        exchange_type =&gt; &quot;direct&quot;        host =&gt; '1.1.1.1'        password =&gt; &quot;guest&quot;        persistent =&gt; true        user =&gt; &quot;guest&quot;   }   #file { path =&gt; &quot;\/var\/log\/raw\/%{host}\/%{+YYYY-MM-dd}.log&quot;  } }  <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c <a href=\"http:\/\/habrahabr.ru\/post\/165059\/\">\u0437\u0434\u0435\u0441\u044c<\/a> \u0438 <a href=\"https:\/\/www.elastic.co\/guide\/en\/logstash\/current\/index.html\">\u0437\u0434\u0435\u0441\u044c<\/a><\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 HAProxy<\/h3>\n<pre><code class=\"bash\">apt-get update && apt-get install haproxy -y <\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c <i>\/etc\/haproxy\/haproxy.cfg<\/i>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">haproxy.cfg<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">global         log \/dev\/log    local0         log \/dev\/log    local1 notice         chroot \/var\/lib\/haproxy         user haproxy         group haproxy         daemon  defaults         log     global         mode    http         option  tcplog         option  dontlognull         contimeout 5000         clitimeout 50000         srvtimeout 50000  listen to_listeners_event_log :3515   mode    tcp   balance roundrobin   option  tcpka   server one 1.1.1.1:3515 check inter 5000   server two 2.2.2.2:3515 check inter 5000   \u2026   server last n.n.n.n:3515 check inter 5000  listen to_listeners_event_log :3333   mode    tcp   balance roundrobin   option  tcpka   server one 1.1.1.1:3333 check inter 5000   server two 2.2.2.2:3333 check inter 5000   \u2026   server last n.n.n.n:3333 check inter 5000   listen stats :1936   stats show-legends   stats refresh 5s   stats hide-version   stats uri \/ <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0434\u0440\u0443\u0433 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f, \u0442\u043e \u0432 <i>\/etc\/default\/haproxy<\/i> \u043c\u0435\u043d\u044f\u0435\u043c <i>ENABLED=0<\/i> \u043d\u0430 <i>1<\/i>.<\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u043d\u0430 1936 \u043f\u043e\u0440\u0442\u0443.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 NXLOG<\/h3>\n<p>  \u0423 NXLOG \u0435\u0441\u0442\u044c \u0432\u0435\u0440\u0441\u0438\u044f Community, \u043a\u0430\u0447\u0430\u0435\u043c <a href=\"http:\/\/nxlog.org\/products\/nxlog-community-edition\/download\">\u0435\u0451<\/a> \u0441 \u043e\u0444\u0444 \u0441\u0430\u0439\u0442\u0430.<br \/>  \u041a\u043e\u043d\u0444\u0438\u0433 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f:  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">nxlog.conf<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"bash\">#define ROOT C:\\Program Files\\nxlog define ROOT C:\\Program Files (x86)\\nxlog    Moduledir %ROOT%\\modules CacheDir %ROOT%\\data Pidfile %ROOT%\\data\\nxlog.pid SpoolDir %ROOT%\\data LogFile %ROOT%\\data\\nxlog.log    &lt;Extension json&gt;     Module      xm_json &lt;\/Extension&gt;    # Windows Event Log &lt;Input eventlog&gt; # Uncomment im_msvistalog for Windows Vista\/2008 and later     Module im_msvistalog        Query &lt;QueryList&gt;                                                                                    \\              &lt;Query Id='1'&gt;                                                                                 \\               &lt;Select Path=&quot;Application&quot;&gt;*[System[(Level=1  or Level=2 or Level=3 or Level=4)]]&lt;\/Select&gt;    \\               &lt;Select Path='Security'&gt;*&lt;\/Select&gt;                                                            \\               &lt;Select Path=&quot;System&quot;&gt;*[System[(Level=1  or Level=2 or Level=3 or Level=4)]]&lt;\/Select&gt;         \\              &lt;\/Query&gt;                                                                                       \\            &lt;\/QueryList&gt;     Exec $Message = replace ($Message, '&quot;', &quot;'&quot;); # Uncomment im_mseventlog for Windows XP\/2000\/2003 #   Module im_mseventlog    Exec to_json(); &lt;\/Input&gt;   &lt;Output out&gt;    Module om_tcp    # Ip of HAProxy listeners server    Host 192.168.0.14    # Port in Listeners    Port 3515 &lt;\/Output&gt;   &lt;Route 1&gt;    Path eventlog =&gt; out &lt;\/Route&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u042f \u043d\u0430\u043c\u0435\u0440\u0435\u043d\u043d\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043b IP \u043f\u0440\u043e\u043a\u0441\u0438 \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u043c, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u044d\u0442\u043e \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0430\u0434\u0440\u0435\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u0438\u0434\u0435\u0442\u044c \u043a\u043b\u0438\u0435\u043d\u0442, \u043a\u0440\u043e\u043c\u0435 kibana.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0441\u0435\u0440\u0432\u0438\u0441 nxlog.<\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043c\u044b \u0432\u0441\u0451 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0438, \u0442\u043e \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a\u0443\u044e-\u0442\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u043d\u0430 \u0432\u0441\u0435\u0445 \u0445\u043e\u0441\u0442\u0430\u0445.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Kibana<\/h3>\n<p>  <\/p>\n<pre><code class=\"bash\">cd \/tmp wget https:\/\/download.elastic.co\/kibana\/kibana\/kibana-4.1.0-linux-x64.tar.gz tar xvfC kibana-4.1.0-linux-x64.tar.gz \/usr\/local rm -vf \/usr\/local\/kibana ln -s \/usr\/local\/kibana-4.1.0-linux-x64 \/usr\/local\/kibana cd \/usr\/local\/kibana <\/code><\/pre>\n<p>  \u041f\u0440\u0430\u0432\u0438\u043c \u043a\u043e\u043d\u0444\u0438\u0433 <i>\/usr\/local\/kibana\/config\/kibana.yml<\/i>  <\/p>\n<pre><code class=\"javascript\">\u2026 port: 80 \u2026 elasticsearch_url: 'http:\/\/IP_TO_ES_BALANCER:9200' \u2026 <\/code><\/pre>\n<p>  \u041d\u0443 \u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:  <\/p>\n<pre><code class=\"bash\">.\/bin\/kibana -q & <\/code><\/pre>\n<p>  \u0417\u0430\u0445\u043e\u0434\u0438\u043c \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 ip kibana, \u043d\u0430\u043c \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0430\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0438\u043d\u0442\u0443\u0438\u0442\u0438\u0432\u043d\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0435 \u043c\u0430\u043d\u0438\u043f\u0443\u043b\u044f\u0446\u0438\u0438 \u0441 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u043e\u0439.<\/p>\n<p>  \u0412\u0441\u0451. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e \u043e\u0442\u043a\u0438\u043d\u0443\u0442\u044c\u0441\u044f \u0432 \u043a\u0440\u0435\u0441\u043b\u0435 \u0438 \u0441\u0434\u0435\u043b\u0430\u0432 1-10 \u0434\u0430\u0448\u0431\u043e\u0440\u0434\u043e\u0432 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 \u043b\u043e\u0433\u0430\u043c\u0438 (\u0438\u0445, \u043a\u0441\u0442\u0430\u0442\u0438, \u043c\u043e\u0436\u043d\u043e \u043a\u0440\u0430\u0441\u0438\u0432\u043e \u043e\u0444\u043e\u0440\u043c\u0438\u0442\u044c \u0432\u044b \u0432\u044b\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0442\u044c \u0432 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c cms).<br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u0447\u0442\u043e\u0431\u044b \u043b\u0435\u0433\u0447\u0435 \u0431\u044b\u043b\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432\u0441\u0435\u0439 \u044d\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043e\u0439, \u043b\u0443\u0447\u0448\u0435 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u043a\u0430\u043a-\u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0412 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e chef + openstack: \u0437\u0430\u0434\u0430\u043b \u043a\u0430\u043a\u043e\u0439 \u0440\u0435\u0446\u0435\u043f\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0438 \u043f\u043e\u0448\u0451\u043b \u043f\u0438\u0442\u044c \u0447\u0430\u0439\/\u043a\u043e\u0444\u0435\/\u043b\u0438\u043c\u043e\u043d\u0430\u0434.<br \/>  \u0418 \u044d\u0442\u043e \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0451, \u0447\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041d\u043e \u0431\u0430\u0437\u043e\u0432\u0430\u044f \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c.<\/p>\n<p>  \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0430\u0446\u0438\u044f:<br \/>  1 HAProxy<br \/>  2 Listener<br \/>  1 RabbitMQ<br \/>  2 Filter<br \/>  1 ES-Balancer<br \/>  2 ES-Master<br \/>  2 ES-Data<\/p>\n<p>  \u0415\u0441\u043b\u0438 RabbitMQ \u0437\u0430\u0441\u0443\u043d\u0443\u0442\u044c \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440, \u0442\u043e \u0432\u0441\u0451 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0431\u0443\u0434\u0435\u0442 \u0441\u0432\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043a \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044e Listener`\u043e\u0432, Filter`\u043e\u0432 \u0438 ES-Data \u043d\u043e\u0434. \u0421 \u0443\u0447\u0451\u0442\u043e\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0446\u0438\u0438 \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0431\u0443\u0434\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c 5-15 \u043c\u0438\u043d\u0443\u0442 (\u0431\u044e\u0440\u043e\u043a\u0440\u0430\u0442\u0438\u044e \u043d\u0435 \u0431\u0435\u0440\u0451\u043c \u0432 \u0440\u0430\u0441\u0447\u0451\u0442).<br \/>  \u0412\u0441\u0451 \u044d\u0442\u043e \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c \u00ab\u0441 \u043d\u0443\u043b\u044f\u00bb \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Chef \u043d\u0430 \u0442\u0435\u0441\u0442\u043e\u0432\u043e\u043c \u0441\u0442\u0435\u043d\u0434\u0435 \u043c\u043d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0437\u0430 1 \u0447\u0430\u0441, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 5 \u043c\u0438\u043d\u0443\u0442 \u044f \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u0445\u043e\u0441\u0442\u044b, 5 \u043c\u0438\u043d\u0443\u0442 \u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0440\u0438\u043f\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b \u0440\u0435\u0446\u0435\u043f\u0442\u044b \u043d\u0430 \u0445\u043e\u0441\u0442\u0430\u0445, 40 \u043c\u0438\u043d\u0443\u0442 \u0447\u0438\u0442\u0430\u043b \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u0438 10 \u043c\u0438\u043d\u0443\u0442 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b \u0432\u0441\u0451 \u043b\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  \u041d\u0430\u0434\u0435\u044e\u0441\u044c \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u043e\u043c\u043e\u0436\u0435\u0442.   \t\t\t\t<\/p>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0442\u044c \u043f\u0438\u0441\u0430\u0442\u044c?<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"261197\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"13733\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv67685\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"67685\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv67685\">\u041d\u0443\u0436\u0435\u043d \u043c\u0430\u043d \u043f\u043e OpenStack\/DevStack<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv67687\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"67687\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv67687\">\u041d\u0443\u0436\u0435\u043d \u043c\u0430\u043d \u043f\u043e Chef \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 \u00ab\u0434\u043b\u044f \u0447\u0430\u0439\u043d\u0438\u043a\u043e\u0432\u00bb<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"checkbox\" id=\"vv67689\" \t\t\t\t\t\tclass=\"checkbox js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"67689\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv67689\">\u041d\u0435\u0442, \u0441\u043f\u0430\u0441\u0438\u0431\u043e. \u041d\u0435 \u0442\u0432\u043e\u0451 \u044d\u0442\u043e, \u043f\u0430\u0440\u0435\u043d\u044c, \u043d\u0435 \u0442\u0432\u043e\u0451\u2026<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041d\u0438\u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"https:\/\/habrahabr.ru\/auth\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<\/p><\/div>\n<div class=\"clear\"><\/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\/261197\/\"> http:\/\/habrahabr.ru\/post\/261197\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>     \t\u0412 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435 \u043e\u0431 \u0441\u0432\u043e\u0438\u0445 \u044d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u0445 \u0441 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435\u043c \u043b\u043e\u0433\u043e\u0432 \u043d\u0430 ELKR \u043f\u0438\u0448\u0443 \u043d\u0435\u043a\u0438\u0439 \u00ab\u043c\u0430\u043d\u0443\u0430\u043b\u00bb \u043f\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u0438 \u0431\u0430\u0437\u043e\u0432\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435.<\/p>\n<p>  \u0422\u0435 \u0441\u0442\u0430\u0442\u044c\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u041e\u0427\u0415\u041d\u042c \u043f\u043e\u043c\u043e\u0433\u043b\u0438:<br \/>  <a href=\"http:\/\/habrahabr.ru\/post\/165059\/\">\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c, \u043f\u0430\u0440\u0441\u0438\u043c \u0438 \u043e\u0442\u0434\u0430\u0451\u043c \u043b\u043e\u0433\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Logstash<\/a> \u2014 \u043c\u0430\u0442\u0447\u0430\u0441\u0442\u044c<br \/>  <a href=\"http:\/\/habrahabr.ru\/company\/maxifier\/blog\/216201\/\">\u0421\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u043b\u043e\u0433\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Lumberjack+Logstash+Elasticsearch+RabbitMQ<\/a> \u2014 \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f<\/p>\n<p>  \u0421\u043f\u0430\u0441\u0438\u0431\u043e \u0430\u0432\u0442\u043e\u0440\u0430\u043c!<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0440\u0430\u0437\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u0443:<br \/>  <i>Device =&gt; HAProxy =&gt; Logstash-Listener =&gt; RabbitMQ =&gt; Logstash-Filter =&gt; Elasticsearch-Balancer =&gt; Elasticsearch DATA\/MASTER<\/i>  <\/p>\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-260154","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/260154","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=260154"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/260154\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=260154"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=260154"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=260154"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}