{"id":269036,"date":"2015-11-26T08:32:02","date_gmt":"2015-11-26T05:32:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=269036"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=269036","title":{"rendered":"DevOps: \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438 \u0441\u043f\u0438\u043c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e"},"content":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f7b\/a6e\/614\/f7ba6e61460e4238ae66af472a4428d4.jpg\"\/><br \/>  \u0412\u043d\u0435\u0437\u0430\u043f\u043d\u043e, \u043d\u043e\u0447\u044c\u044e \u0440\u0430\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a \u0438 \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c \u0447\u0442\u043e \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0415\u0441\u0442\u044c 2 \u0447\u0430\u0441\u0430 \u043d\u0430 \u0435\u0433\u043e \u0440\u0435\u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e\u2026<br \/>  <a name=\"habracut\"><\/a><\/p>\n<p>  \u0414\u0430, \u043c\u044b \u0438\u0441\u043f\u0440\u0430\u0432\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 \u043b\u043e\u0433\u0438 \u0432 Elasticsearch, \u0432\u0434\u043e\u0445\u043d\u043e\u0432\u0438\u0432\u0448\u0438\u0441\u044c \u0438\u0434\u0435\u044f\u043c\u0438 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/267009\/\">\u00ab\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043b\u043e\u0433\u043e\u0432 \u0432 Elasticsearch \u2014 \u0436\u0438\u0437\u043d\u044c \u0431\u0435\u0437 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0431\u0435\u0437 logstash\u00bb<\/a>. \u041d\u043e \u0432\u043e\u0442 \u0434\u043b\u044f \u0440\u0430\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u0441\u0442\u0438\u043d\u043d\u043e\u0439 \u043f\u0440\u0438\u0447\u0438\u043d\u044b \u00ab\u043f\u0430\u0434\u0435\u043d\u0438\u044f\u00bb \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430\u043c \u044f\u0432\u043d\u043e \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 jmx \u0431\u0438\u043d\u043e\u0432 jvm, jmx \u043f\u0443\u043b\u0430 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f \u0441 \u0431\u0430\u0437\u043e\u0439, \u0434\u0430\u043d\u043d\u044b\u0445 \u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0442\u043a\u0440\u044b\u0442\u044b\u0445 \u043d\u0430\u0448\u0438\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u043c \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0434\u0435\u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0440\u043e\u0432 \u0438 \u0442. \u043f. \u041a\u0430\u043a \u0436\u0435 \u043c\u044b \u0442\u0430\u043a \u043e \u043d\u0438\u0445 \u0437\u0430\u0431\u044b\u043b\u0438!? \u041f\u043e\u0437\u0434\u043d\u043e \u043f\u0438\u0442\u044c \u0411\u043e\u0440\u0436\u043e\u043c\u0438\u2026<\/p>\n<p>  \u041c\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u0435\u043c \u0431\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438\u0437 nagios, zabbix, collectd \u0438\u043b\u0438 \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430, \u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u0434\u043e\u0431\u043d\u0435\u0435 \u0438\u043c\u0435\u0442\u044c \u0432\u0441\u0435 \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432 Elasticsearch. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b\u043e \u0431\u044b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 <a href=\"https:\/\/www.elastic.co\/products\/kibana\">kibana<\/a> \u0438 <a href=\"https:\/\/www.elastic.co\/products\/watcher\">\u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f<\/a> \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0435\u0434\u0438\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0439 \u0438\u0437 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0443\u0437\u043b\u0430\u0445 \u0432 \u0441\u0435\u0442\u0438. Elasticsearch \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u0439 \u043f\u043e\u0438\u0441\u043a \u0438 \u0433\u043e\u0440\u0438\u0437\u043e\u043d\u0442\u0430\u043b\u044c\u043d\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0437\u0430 \u0441\u0447\u0435\u0442 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043d\u043e\u0432\u044b\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/p>\n<p>  \u041b\u0430\u0434\u043d\u043e, \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437 \u043f\u0435\u0440\u0435\u043b\u043e\u043f\u0430\u0442\u0438\u043c \u043b\u043e\u0433\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0438\u0437\u0443\u0447\u0438\u043c \u0438\u0441\u0442\u043e\u0440\u0438\u044e \u043c\u0435\u0442\u0440\u0438\u043a \u0432 \u043d\u0430\u0448\u0435\u043c \u0447\u0443\u0434\u0435\u0441\u043d\u043e\u043c \u043f\u0440\u043e\u043f\u0440\u0438\u0435\u0442\u0430\u0440\u043d\u043e\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0435 \u0438 \u043f\u0440\u0438\u0434\u0443\u043c\u0430\u0435\u043c \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043f\u043e\u043f\u0440\u0430\u0432\u0434\u043e\u043f\u043e\u0434\u043e\u0431\u043d\u0435\u0435. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0440\u0430\u0437 \u043f\u043e\u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u043c \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432\u0438\u0434\u0435 \u0438 \u0432\u044b\u044f\u0441\u043d\u0438\u0442\u044c \u0438\u0441\u0442\u0438\u043d\u043d\u0443\u044e \u043f\u0440\u0438\u0447\u0438\u043d\u0443, \u043e\u0441\u043d\u043e\u0432\u044b\u0432\u0430\u044f\u0441\u044c \u043d\u0430 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u0445 \u0438 \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u043e\u0434\u0435\u043b\u044e\u0441\u044c \u0441 \u0432\u0430\u043c\u0438 \u0440\u0435\u0446\u0435\u043f\u0442\u043e\u043c \u043a\u0430\u043a \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043f\u0430\u0442\u044c \u043d\u043e\u0447\u044c\u044e:  <\/p>\n<ul>\n<li>\u0413\u043e\u0442\u043e\u0432\u0438\u043c Elasticsearch \u0438 kibana<\/li>\n<li>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 jvm \u0432 Elasticsearch<\/li>\n<li>\u0410 \u043a\u0430\u043a \u0436\u0435 \u043b\u043e\u0433\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f?<\/li>\n<li>\u041a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 jvm \u0438 \u043f\u0440\u0438\u0447\u0435\u043c \u0437\u0434\u0435\u0441\u044c groovy?<\/li>\n<\/ul>\n<h2>\u0413\u043e\u0442\u043e\u0432\u0438\u043c Elasticsearch \u0438 kibana<\/h2>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0442\u043e\u0433\u043e, \u043a\u0443\u0434\u0430 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c Elasticsearch(ES) \u0441\u0435\u0440\u0432\u0435\u0440. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <a href=\"https:\/\/github.com\/igor-suhorukov\/elasticsearch-server-example\">Elasticsearch \u0432 \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 <\/a>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0441\u0440\u0430\u0437\u0443 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442 \u0448\u0430\u0431\u043b\u043e\u043d \u043f\u043e-\u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043d\u043e\u0432\u044b\u0445 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u0432 kibana \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0433\u043e\u0442\u043e\u0432\u044b\u0439 Logstash Dashboard. \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u043a <i>mvn package<\/i>. \u0423\u0437\u043b\u044b \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043d\u0430\u0445\u043e\u0434\u044f\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e multicast UDP \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0438 \u043e\u0431\u044a\u0435\u0434\u0438\u043d\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043f\u043e \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u044e\u0449\u0435\u043c\u0443 clusterName. \u042f\u0441\u043d\u043e, \u0447\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 unicast \u0430\u0434\u0440\u0435\u0441\u043e\u0432 \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0436\u0438\u0437\u043d\u044c \u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0435, \u043d\u043e \u0432 \u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u0439 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0438 \u0442\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442!  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c Elasticsearch \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e groovy \u0441\u043a\u0440\u0438\u043f\u0442\u0430&#8230;<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p>java -jar <a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/groovy-grape-aether\/2.4.5.1\/groovy-grape-aether-2.4.5.1.jar\">groovy-grape-aether-2.4.5.1.jar<\/a> <a href=\"https:\/\/raw.githubusercontent.com\/igor-suhorukov\/elasticsearch-server-example\/master\/elasticsearch-server.groovy\">elasticsearch-server.groovy<\/a><\/p><\/blockquote>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 elasticsearch-server.groovy:  <\/p>\n<pre><code>@Grab(group='org.elasticsearch', module='elasticsearch', version='1.1.1') import org.elasticsearch.common.settings.ImmutableSettings; import org.elasticsearch.node.Node; import org.elasticsearch.node.NodeBuilder;  import java.io.InputStream; import java.net.URL; import java.util.concurrent.TimeUnit;          int durationInSeconds = args.length == 0 ? 3600 : Integer.parseInt(this.args[0]);  String template; InputStream templateStream = new URL(&quot;https:\/\/raw.githubusercontent.com\/logstash-plugins\/logstash-output-elasticsearch\/master\/lib\/logstash\/outputs\/elasticsearch\/elasticsearch-template.json&quot;).openStream() try{     template = new String(sun.misc.IOUtils.readFully(templateStream, -1, true)); } finally{     templateStream.close() }  Node elasticsearchServer = NodeBuilder.nodeBuilder().settings(ImmutableSettings.settingsBuilder().put(&quot;http.cors.enabled&quot;,&quot;true&quot;)).clusterName(&quot;elasticsearchServer&quot;).data(true).build(); Node node = elasticsearchServer.start(); node.client().admin().indices().preparePutTemplate(&quot;logstash&quot;).setSource(template).get(); System.out.println(&quot;ES STARTED&quot;);  Thread.sleep(TimeUnit.SECONDS.toMillis(durationInSeconds)); <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u043b\u044f \u043c\u0435\u0442\u0440\u0438\u043a \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c\u0441\u044f \u043a \u043d\u0435\u043c\u0443 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0435\u0431 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f <a href=\"https:\/\/www.elastic.co\/downloads\/past-releases\/kibana-3-1-3\">Kibana<\/a> \u0438 \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0443\u0432\u0438\u0434\u0435\u043c, \u0442\u0430\u043a \u043a\u0430\u043a \u0435\u0449\u0435 \u043d\u0438\u043a\u0442\u043e \u043d\u0435 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442 \u0442\u0443\u0434\u0430 \u043c\u0435\u0442\u0440\u0438\u043a\u0438. \u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 Elasticsearch \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0432\u0448\u0438\u0445\u0441\u044f \u043a\u043b\u0438\u0435\u043d\u0442\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/royrusso\/elasticsearch-HQ\">elasticsearch-HQ<\/a>, \u043d\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0435\u0439 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043d\u043e\u0433\u043e \u0438 \u0432\u044b\u0431\u043e\u0440 \u0431\u0443\u0434\u0435\u0442 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441.<\/p>\n<p>  \u041f\u0430\u0440\u0443 \u0441\u043b\u043e\u0432 \u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 kibana \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430. \u0412 \u0444\u0430\u0439\u043b\u0435 kibana-3.1.3\/config.js \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u043e: elasticsearch: \u00ab<a href=\"http:\/\/127.0.0.1\">127.0.0.1<\/a>:9200\u00bb. \u041f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043a elasticsearch \u0441\u0435\u0440\u0432\u0435\u0440\u0443, \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u043c\u0443 \u043d\u0430 \u0442\u043e\u043c \u0436\u0435 \u0443\u0437\u043b\u0435 \u0441\u0435\u0442\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u043c elasticsearch-server.groovy \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 mvn package.<\/p>\n<p>  <iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/xVRlpGeilyg?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 jvm \u0432 Elasticsearch<\/h2>\n<p>  \u0412\u0441\u044e \u043c\u0430\u0433\u0438\u044e \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/igor-suhorukov\/aspectj-scripting\">AspectJ-Scripting<\/a> \u0430\u0433\u0435\u043d\u0442\u0430. \u0410\u0433\u0435\u043d\u0442 \u0431\u044b\u043b \u0434\u043e\u0440\u0430\u0431\u043e\u0442\u0430\u043d \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u043a\u043e \u0432\u043d\u0435\u0434\u0440\u044f\u0442\u044c \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AttachAPI \u0438 \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u0447\u0435\u0440\u0435\u0437 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0430\u0433\u0435\u043d\u0442\u0430. \u0422\u0435\u043f\u0435\u0440\u044c \u0430\u0433\u0435\u043d\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0431\u0435\u0437 \u0430\u0441\u043f\u0435\u043a\u0442\u043e\u0432 \u0438 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u0435\u0440\u0438\u043e\u0434\u0438\u0447\u0435\u0441\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0435 \u0437\u0430\u0434\u0430\u0447\u0438.<\/p>\n<p>  AspectJ-Scripting \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 \u0438 \u043f\u0435\u0440\u0435\u043f\u0430\u043a\u043e\u0432\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e jar \u0444\u0430\u0439\u043b\u0430 \u0441 \u0430\u0433\u0435\u043d\u0442\u043e\u043c <a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/aspectj-scripting\/1.3\/aspectj-scripting-1.3-agent.jar\">aspectj-scripting-1.3-agent.jar<\/a>, \u0444\u0430\u0439\u043b\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0432 \u0444\u0430\u0439\u043b\u043e\u0432\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 (\u0438\u043b\u0438 \u043d\u0430 \u0432\u0435\u0431 \u0441\u0435\u0440\u0432\u0435\u0440\u0435) \u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 -javaagent \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 JVM, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441\u043e \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 Elasticsearch.<\/p>\n<p>  \u0412 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 java \u0430\u0433\u0435\u043d\u0442\u0430 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/github.com\/igor-suhorukov\/jvm-metrics\">com.github.igor-suhorukov:jvm-metrics:1.2<\/a> \u0438 \u00ab\u043f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c\u00bb \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442:  <\/p>\n<ul>\n<li><a href=\"https:\/\/jolokia.org\/\">Jolokia<\/a> \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f jmx \u043c\u0435\u0442\u0440\u0438\u043a \u0441 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u0438\u043b\u0438 \u043a \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u043c\u0443 mbean \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0438\u043b\u0438 \u043f\u043e JSR160(RMI)<\/li>\n<li>jvmstat performance counters \u2014 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u0435\u0441\u043b\u0438 \u043c\u044b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u043f\u043e\u0434 OpenJDK\/Oracle JVM<\/li>\n<li><a href=\"https:\/\/support.hyperic.com\/display\/SIGAR\/Home\">SIGAR<\/a> \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a \u043e\u0442 \u041e\u0421 \u0438 io.kamon:sigar-loader \u0434\u043b\u044f \u0443\u043f\u0440\u043e\u0449\u0435\u043d\u0438\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0435\u0433\u043e native \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438.<\/li>\n<\/ul>\n<p>  \u0418\u0442\u0430\u043a, \u0432\u0441\u0435 \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u0443\u044e \u043d\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0443 \u043f\u043e \u0441\u0431\u043e\u0440\u0443 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043c\u0435\u0442\u0440\u0438\u043a, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0444\u0430\u0439\u043b\u0435 log.metrics.xml  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;configuration&gt;     &lt;globalContext&gt;         &lt;artifacts&gt;             &lt;artifact&gt;com.github.igor-suhorukov:jvm-metrics:1.2&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;SigarCollect&lt;\/variable&gt;&lt;className&gt;org.github.suhorukov.SigarCollect&lt;\/className&gt;             &lt;\/classRefs&gt;             &lt;classRefs&gt;                 &lt;variable&gt;JmxCollect&lt;\/variable&gt;&lt;className&gt;org.github.suhorukov.JmxCollect&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;artifacts&gt;             &lt;artifact&gt;org.elasticsearch:elasticsearch:1.1.1&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;NodeBuilder&lt;\/variable&gt;&lt;className&gt;org.elasticsearch.node.NodeBuilder&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;init&gt;             &lt;expression&gt;                 SigarCollect sigar = new SigarCollect();                 JmxCollect jmxCollect = new JmxCollect();                  reportHost = java.net.InetAddress.getLocalHost().getHostName();                 pid = java.lang.management.ManagementFactory.getRuntimeMXBean().getName().split(&quot;@&quot;)[0];                  Thread.currentThread().setContextClassLoader(NodeBuilder.class.getClassLoader());                 client = NodeBuilder.nodeBuilder().clusterName(&quot;elasticsearchServer&quot;).data(false).client(true).build().start().client();                  additionalRecords = new java.util.HashMap();                 additionalRecords.put(&quot;Host&quot;, reportHost);  additionalRecords.put(&quot;Pid&quot;, pid);             &lt;\/expression&gt;         &lt;\/init&gt;         &lt;timerTasks&gt;             &lt;delay&gt;500&lt;\/delay&gt;             &lt;period&gt;2000&lt;\/period&gt;             &lt;jobExpression&gt;                 import java.text.SimpleDateFormat;                 import java.util.TimeZone;                  logstashFormat = new SimpleDateFormat(&quot;yyyy.MM.dd&quot;);                 logstashFormat.setTimeZone(TimeZone.getTimeZone(&quot;UTC&quot;));                 timestamp = new java.util.Date();                 index = &quot;logstash-&quot; + logstashFormat.format(timestamp);                 jmxInfo = jmxCollect.getJsonJmxInfo(&quot;java.lang:type=Memory&quot;, timestamp, additionalRecords);                 nativeInfo = sigar.getJsonProcessInfo(additionalRecords);                 client.index(client.prepareIndex(index, &quot;logs&quot;).setSource(jmxInfo).request()).actionGet();                 client.index(client.prepareIndex(index, &quot;logs&quot;).setSource(nativeInfo).request()).actionGet();             &lt;\/jobExpression&gt;         &lt;\/timerTasks&gt;     &lt;\/globalContext&gt; &lt;\/configuration&gt; <\/code><\/pre>\n<p>  \u0412 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u044b \u043a\u043b\u0430\u0441\u0441\u043e\u0432 SigarCollect \u0438 JmxCollect, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 com.github.igor-suhorukov:jvm-metrics:1.2 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0442\u0430\u0440\u0442\u0430 \u0430\u0433\u0435\u043d\u0442\u0430. <\/p>\n<p>  SigarCollect \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u043c\u043d\u043e\u0433\u0438\u0445 \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043d\u0435\u0442 \u0432 jxm, \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u044b\u0432\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0432 json \u0444\u043e\u0440\u043c\u0430\u0442. JmxCollect \u2014 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 jmx \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u044f \u0438\u0445 \u0432 json \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438\u0437 JmxCollect \u043c\u044b \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043b\u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u043c \u00abjava.lang:type=Memory\u00bb, \u043d\u043e \u0432\u0430\u043c \u0442\u043e\u0447\u043d\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 jxm \u0431\u0438\u043d\u043e\u0432.<\/p>\n<p>  \u0412 additionalRecords \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c reportHost \u2014 \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 pid<\/p>\n<p>  \u0412 client \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043a\u043b\u0438\u0435\u043d\u0442 \u0434\u043b\u044f elasticsearch, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u043c \u0441 \u0438\u043c\u0435\u043d\u0435\u043c Elasticsearch \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 \u00abelasticsearchServer\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<p>  \u041d\u0430\u0448\u0430 \u0437\u0430\u0434\u0430\u0447\u0430 \u043f\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0435 \u043c\u0435\u0442\u0440\u0438\u043a \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 2 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0432 \u0438\u043d\u0434\u0435\u043a\u0441 \u0441 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u0434\u0430\u0442\u043e\u0439, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 logstash-2015.11.25. \u0412 \u044d\u0442\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0438\u0437 JmxCollect \u0438 SigarCollect \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u044e\u0442\u0441\u044f \u043a\u0430\u043a json \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u0435\u0442 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c kibana. \u041c\u0435\u0442\u0440\u0438\u043a\u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 Elasticsearch \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0438 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u044e\u0442\u0441\u044f.<\/p>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u0435\u043c, \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0432\u043f\u043e\u043b\u043d\u0435 \u0437\u043d\u0430\u043a\u043e\u043c\u043e\u043c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c java-\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u043c \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441\u0435 \u044f\u0437\u044b\u043a\u0430 MVEL.<\/p>\n<p>  \u0412 \u0441\u043a\u0440\u0438\u043f\u0442 \u0441\u0442\u0430\u0440\u0442\u0430 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c -javaagent:\/?PATH?\/<a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/aspectj-scripting\/1.3\/aspectj-scripting-1.3-agent.jar\">aspectj-scripting-1.3-agent.jar<\/a>=config:file:\/?PATH?\/<a href=\"https:\/\/raw.githubusercontent.com\/igor-suhorukov\/elasticsearch-server-example\/master\/log.metrics.xml\">log.metrics.xml<\/a><br \/>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0432\u0441\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u044b \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u043d\u0430 \u0432\u0441\u0435\u0445 \u0443\u0437\u043b\u0430\u0445 \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043a\u0430\u043a \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0442\u0435\u043a\u0443\u0442 \u0440\u0435\u043a\u043e\u0439 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Elasticsearch<\/p>\n<p>  <iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/wNjIKh2R1Pw?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>\u0410 \u043a\u0430\u043a \u0436\u0435 \u043b\u043e\u0433\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f?<\/h2>\n<p>  \u041c\u044b \u0443\u0436\u0435 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u0432 Elasticsearch, \u043d\u043e \u0442\u0430\u043c \u043d\u0435 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0434\u0440\u0443\u0433\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e\u0442 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u0430 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/267009\/\">\u00ab\u041f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u044f \u043b\u043e\u0433\u043e\u0432 \u0432 Elasticsearch \u2014 \u0436\u0438\u0437\u043d\u044c \u0431\u0435\u0437 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u0432\u044b\u0440\u0430\u0436\u0435\u043d\u0438\u0439 \u0438 \u0431\u0435\u0437 logstash\u00bb<\/a> \u043f\u0430\u0440\u0441\u0438\u043d\u0433 \u0444\u0430\u0439\u043b\u043e\u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043d\u0443\u0436\u0435\u043d. \u041f\u0440\u0438 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u0444\u043e\u0440\u043c\u0430\u0442\u0430 \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438\u043b\u0438 \u043f\u043e\u044f\u0432\u043b\u0435\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043d\u0430\u0431\u043e\u0440 \u0440\u0435\u0433\u0443\u043b\u044f\u0440\u043e\u043a. \u0412 \u044d\u0442\u043e\u043c \u043f\u043e\u0434\u0445\u043e\u0434\u0435 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u0435\u0440\u0435\u0445\u0432\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0432\u044b\u0437\u043e\u0432\u044b \u043c\u0435\u0442\u043e\u0434\u043e\u0432 error, warn, info, debug, trace \u043b\u043e\u0433\u0435\u0440\u0430 \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432 elasticsearch.<\/p>\n<h2>\u041a\u0430\u043a \u0431\u044b\u0442\u044c \u0441 \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430\u043c\u0438 jvm \u0438 \u043f\u0440\u0438\u0447\u0435\u043c \u0437\u0434\u0435\u0441\u044c groovy?<\/h2>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 Groovy \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u043d\u0430\u043c \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0430\u0433\u0435\u043d\u0442 \u0434\u0430\u0436\u0435 \u0432 \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u043e\u0435 \u0432 jvm \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0443\u043a\u0430\u0437\u0430\u0432 \u043b\u0438\u0448\u044c \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0438 \u043f\u0443\u0442\u044c \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0418 \u0434\u0430\u0436\u0435 tools.jar \u0438\u0437 jvm \u043d\u0435 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0432\u043d\u0435\u0434\u0440\u0435\u043d\u0438\u044f \u0430\u0433\u0435\u043d\u0442\u0430 \u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AttachAPI. \u042d\u0442\u043e \u0441\u0442\u0430\u043b\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 <a href=\"https:\/\/github.com\/igor-suhorukov\/attach-vm\">com.github.igor-suhorukov:attach-vm:1.0<\/a>, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0430\u0445 \u0438\u0437 JMockit\/OpenJDK. <\/p>\n<p>  \u0414\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u044d\u0442\u043e\u0433\u043e \u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043f\u0440\u0438\u0433\u043e\u0442\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0433\u0440\u0443\u0432\u0438 <a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/groovy-grape-aether\/2.4.5.1\/groovy-grape-aether-2.4.5.1.jar\">groovy-grape-aether-2.4.5.1.jar<\/a>. \u041e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044f\u0445 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u044f <a href=\"http:\/\/habrahabr.ru\/post\/270145\/\">\u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043b<\/a>.  <\/p>\n<blockquote><p>java -jar <a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/groovy-grape-aether\/2.4.5.1\/groovy-grape-aether-2.4.5.1.jar\">groovy-grape-aether-2.4.5.1.jar<\/a> <a href=\"https:\/\/raw.githubusercontent.com\/igor-suhorukov\/elasticsearch-server-example\/master\/attachjvm.groovy\">attachjvm.groovy<\/a> <i>JVM_PID<\/i> config:file:<i>?PATH?<\/i>\/<a href=\"https:\/\/raw.githubusercontent.com\/igor-suhorukov\/elasticsearch-server-example\/master\/log.metrics.xml\">log.metrics.xml<\/a><\/p><\/blockquote>\n<p>  \u0421\u043a\u0440\u0438\u043f\u0442 attachjvm.groovy \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0435\u0442 aspectj-scripting:jar:agent \u0438\u0437 maven \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u0430\u0440\u0438\u044f \u0438 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e AttachAPI \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a jvm \u0441 \u043d\u043e\u043c\u0435\u0440\u043e\u043c \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 <i>JVM_PID<\/i>, \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u044f \u0432 \u044d\u0442\u0443 jvm aspectj-scripting \u0430\u0433\u0435\u043d\u0442 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 log.metrics.xml  <\/p>\n<pre><code>@Grab(group='com.github.igor-suhorukov', module='attach-vm', version='1.0') import com.github.igorsuhorukov.jvmattachapi.VirtualMachineUtils; import com.sun.tools.attach.VirtualMachine; import com.github.igorsuhorukov.smreed.dropship.MavenClassLoader;  def aspectJScriptingFile = MavenClassLoader.forMavenCoordinates(&quot;com.github.igor-suhorukov:aspectj-scripting:jar:agent:1.3&quot;).getURLs().getAt(0).getFile() println aspectJScriptingFile  def processId = this.args.getAt(0) \/\/CliBuilder def configPath = this.args.getAt(1)  VirtualMachine virtualMachine = VirtualMachineUtils.connectToVirtualMachine(processId) try {     virtualMachine.loadAgent(aspectJScriptingFile, configPath) } finally {     virtualMachine.detach() } <\/code><\/pre>\n<p>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0442\u043e <a href=\"http:\/\/habrahabr.ru\/post\/265741\/\">\u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u0440\u043e\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 ssh server \u0432 java \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a>. \u041a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0432\u043d\u0435\u0434\u0440\u0438\u0442\u044c \u0432 \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u043d\u044b\u0439 java \u043f\u0440\u043e\u0446\u0435\u0441\u0441:  <\/p>\n<blockquote><p>java -jar <a href=\"http:\/\/central.maven.org\/maven2\/com\/github\/igor-suhorukov\/groovy-grape-aether\/2.4.5.1\/groovy-grape-aether-2.4.5.1.jar\">groovy-grape-aether-2.4.5.1.jar<\/a> <a href=\"https:\/\/raw.githubusercontent.com\/igor-suhorukov\/elasticsearch-server-example\/master\/attachjvm.groovy\">attachjvm.groovy<\/a> <i>JVM_PID<\/i> config:file:<i>?PATH?<\/i>\/<a href=\"https:\/\/raw.githubusercontent.com\/igor-suhorukov\/elasticsearch-server-example\/master\/CRaSHub_ssh.xml\">CRaSHub_ssh.xml<\/a><\/p><\/blockquote>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u0421\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 CRaSHub_ssh.xml&#8230;<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"xml\">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt; &lt;configuration&gt;     &lt;globalContext&gt;         &lt;artifacts&gt;             &lt;artifact&gt;org.crashub:crash.connectors.ssh:1.3.1&lt;\/artifact&gt;             &lt;classRefs&gt;                 &lt;variable&gt;Bootstrap&lt;\/variable&gt;                 &lt;className&gt;org.crsh.standalone.Bootstrap&lt;\/className&gt;             &lt;\/classRefs&gt;             &lt;classRefs&gt;                 &lt;variable&gt;Builder&lt;\/variable&gt;                 &lt;className&gt;org.crsh.vfs.FS$Builder&lt;\/className&gt;             &lt;\/classRefs&gt;             &lt;classRefs&gt;                 &lt;variable&gt;ClassPathMountFactory&lt;\/variable&gt;                 &lt;className&gt;org.crsh.vfs.spi.url.ClassPathMountFactory&lt;\/className&gt;             &lt;\/classRefs&gt;             &lt;classRefs&gt;                 &lt;variable&gt;FileMountFactory&lt;\/variable&gt;                 &lt;className&gt;org.crsh.vfs.spi.file.FileMountFactory&lt;\/className&gt;             &lt;\/classRefs&gt;         &lt;\/artifacts&gt;         &lt;init&gt;             &lt;expression&gt;                 import java.util.concurrent.TimeUnit;                  otherCmd = new FileMountFactory(new java.io.File(System.getProperty(&quot;user.dir&quot;)));                 classLoader = otherCmd.getClass().getClassLoader();                 classpathDriver = new ClassPathMountFactory(classLoader);                 cmdFS = new Builder().register(&quot;classpath&quot;, classpathDriver).register(&quot;file&quot;, otherCmd).mount(&quot;classpath:\/crash\/commands\/&quot;).build();                 confFS = new Builder().register(&quot;classpath&quot;, classpathDriver).mount(&quot;classpath:\/crash\/&quot;).build();                 bootstrap = new Bootstrap(classLoader, confFS, cmdFS);                  config = new java.util.Properties();                 config.put(&quot;crash.ssh.port&quot;, &quot;2000&quot;);                 config.put(&quot;crash.ssh.auth_timeout&quot;, &quot;300000&quot;);                 config.put(&quot;crash.ssh.idle_timeout&quot;, &quot;300000&quot;);                 config.put(&quot;crash.auth&quot;, &quot;simple&quot;);                 config.put(&quot;crash.auth.simple.username&quot;, &quot;admin&quot;);                 config.put(&quot;crash.auth.simple.password&quot;, &quot;admin&quot;);                  bootstrap.setConfig(config);                 bootstrap.bootstrap();                  Thread.sleep(TimeUnit.MINUTES.toMillis(30));                  bootstrap.shutdown();             &lt;\/expression&gt;         &lt;\/init&gt;     &lt;\/globalContext&gt; &lt;\/configuration&gt; <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  <iframe loading=\"lazy\" width=\"420\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/lEx2JLf58Q4?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<h2>\u0412\u044b\u0432\u043e\u0434\u044b<\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0441\u043f\u0430\u0442\u044c \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u043e, \u043d\u0430\u0434\u043e \u0443\u0434\u0435\u043b\u044f\u0442\u044c \u043d\u0435 \u043c\u0435\u043d\u044c\u0448\u0435\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0430\u043c, \u0441\u0432\u044f\u0437\u0430\u043d\u043d\u044b\u043c \u0441 \u044d\u043a\u0441\u043f\u043b\u0443\u0430\u0442\u0430\u0446\u0438\u0435\u0439 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Elasticsearch, \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0438\u043d\u0434\u0435\u043a\u0441\u043e\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432 kibana. \u0412 Elasticsearch \u0438\u0437 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0441 \u043c\u0435\u0442\u0440\u0438\u043a\u0430\u043c\u0438 \u0438\u0437 JMX \u0431\u0438\u043d\u043e\u0432, \u043c\u0435\u0442\u0440\u0438\u043a \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 jvm \u0438 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0421\u044e\u0434\u0430 \u0436\u0435 \u043c\u044b <a href=\"http:\/\/habrahabr.ru\/post\/267009\/\">\u0443\u0436\u0435 \u0443\u043c\u0435\u0435\u043c<\/a> \u043f\u0438\u0441\u0430\u0442\u044c \u043b\u043e\u0433\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u0439 \u0431\u044b\u0441\u0442\u0440\u043e \u0432\u044b\u044f\u0441\u043d\u044f\u0435\u043c \u043f\u0440\u0438\u0447\u0438\u043d\u0443 \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043e\u043a \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0443\u0441\u0442\u0440\u0430\u043d\u044f\u0435\u043c \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043a\u0438. \u0411\u043e\u043b\u0435\u0435 \u0442\u043e\u0433\u043e <a href=\"http:\/\/habrahabr.ru\/post\/265741\/\">\u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c \u043a\u0440\u043e\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u0439 ssh server \u0432 java \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435<\/a> \u0438 \u043c\u044b \u0443\u0436\u0435 \u043c\u043e\u0436\u0435\u043c \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u0436\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u0412 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u0432 \u043d\u0435\u043c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043b\u043e\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e CRaSH.<\/p>\n<p>  \u0416\u0435\u043b\u0430\u044e \u0432\u0430\u0448\u0435\u043c\u0443 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b, \u0430 \u0432\u0430\u043c \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u043e\u0438\u0441\u043a\u0430 \u043f\u0440\u0438\u0447\u0438\u043d \u043d\u0435\u043f\u043e\u043b\u0430\u0434\u043e\u043a, \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u0432\u0441\u0435 \u0436\u0435 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438!               <\/p>\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\/269793\/\"> http:\/\/habrahabr.ru\/post\/269793\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/f7b\/a6e\/614\/f7ba6e61460e4238ae66af472a4428d4.jpg\"\/><br \/>  \u0412\u043d\u0435\u0437\u0430\u043f\u043d\u043e, \u043d\u043e\u0447\u044c\u044e \u0440\u0430\u0437\u0434\u0430\u0435\u0442\u0441\u044f \u0437\u0432\u043e\u043d\u043e\u043a \u0438 \u043c\u044b \u0443\u0437\u043d\u0430\u0435\u043c \u0447\u0442\u043e \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442. \u0415\u0441\u0442\u044c 2 \u0447\u0430\u0441\u0430 \u043d\u0430 \u0435\u0433\u043e \u0440\u0435\u0430\u043d\u0438\u043c\u0430\u0446\u0438\u044e\u2026  <\/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-269036","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269036","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=269036"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/269036\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=269036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=269036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=269036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}