{"id":9668,"date":"2016-12-20T12:00:24","date_gmt":"2016-12-20T03:00:24","guid":{"rendered":"http:\/\/www.skyarch.net\/blog\/?p=9668"},"modified":"2018-03-01T15:14:49","modified_gmt":"2018-03-01T06:14:49","slug":"elasticsearch-5-1-1-%e3%81%a8-kibana-5-1-1-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/elasticsearch-5-1-1-%e3%81%a8-kibana-5-1-1-%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f\/","title":{"rendered":"Elasticsearch 5.1.1 \u3068 Kibana 5.1.1 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>\u307f\u306a\u3055\u3093\u3053\u3093\u306b\u3061\u308f\u3002<br \/>\nfluentd \u304b\u3089 logstash \u306b\u4e57\u308a\u63db\u3048\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u3064\u3064\u3001<br \/>\nElasticsearch 5.1.1 \u3068 Kibana 5.1.1 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3084\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"#overview\">\u6982\u8981<\/a><\/li>\n<li><a href=\"#env\">\u5b9f\u884c\u74b0\u5883<\/a><\/li>\n<li><a href=\"#install1\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/li>\n<li><a href=\"#setting1\">\u8a2d\u5b9a<\/a><\/li>\n<li><a href=\"#setting2\">\u8d77\u52d5<\/a><\/li>\n<li><a href=\"#setting3\">\u78ba\u8a8d<\/a><\/li>\n<li><a href=\"#conclusion\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<h2 id=\"overview\">\u6982\u8981<\/h2>\n<p>Elasticsearch 5.1.1 \u3068 Kibana 5.1.1 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<\/p>\n<h2 id=\"env\">\u5b9f\u884c\u74b0\u5883<\/h2>\n<p>Amazon Linux AMI release 2016.09<br \/>\nt2.medium (\u8d05\u6ca2\u306b\u884c\u304d\u307e\u3059)<\/p>\n<h2 id=\"install1\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u307e\u305a\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306b\u884c\u3053\u3046\uff01<br \/>\n<a href=\"https:\/\/www.elastic.co\/jp\/\">https:\/\/www.elastic.co\/jp\/<\/a><\/p>\n<p>\u3044\u3064\u898b\u3066\u3082\u30dd\u30c3\u30d7\u3067\u30b9\u30bf\u30a4\u30ea\u30c3\u30b7\u30e5\u306a\u30b5\u30a4\u30c8\u3067\u3059\u306d\u3002\u30ef\u30af\u30ef\u30af\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306e\u304a\u76ee\u5f53\u3066\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\n<a href=\"https:\/\/www.elastic.co\/downloads\">https:\/\/www.elastic.co\/downloads<\/a><\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f yum \u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u65bd\u3059\u308b\u306e\u3067\u3001rpm \u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30ea\u30f3\u30af\u3092\u9802\u3044\u3066\u304d\u307e\u3059\u3002<br \/>\n<strong>https:\/\/artifacts.elastic.co\/downloads\/elasticsearch\/elasticsearch-5.1.1.rpm<\/strong><br \/>\n<strong> https:\/\/artifacts.elastic.co\/downloads\/kibana\/kibana-5.1.1-x86_64.rpm<\/strong><\/p>\n<p>\u30d0\u30fc\u30b8\u30e7\u30f3\u63c3\u3063\u3066\u3066\u306a\u3093\u304b\u6c17\u6301\u3061\u826f\u3044\u3002<br \/>\n\u3059\u304b\u3055\u305a yum install !<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nyum install https:\/\/artifacts.elastic.co\/downloads\/elasticsearch\/elasticsearch-5.1.1.rpm\r\nyum install https:\/\/artifacts.elastic.co\/downloads\/kibana\/kibana-5.1.1-x86_64.rpm\r\n<\/pre>\n<p>\u305d\u3057\u3066\u8d77\u52d5\u3063\uff01<br \/>\n\u3068\u884c\u304d\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u3001\u51b7\u9759\u306b Java \u3092\u5165\u308c\u307e\u3059\u3002<br \/>\n\u6700\u65b0\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nyum install java-1.8.0-openjdk\r\n<\/pre>\n<p>rpm \u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3057\u3066\u307f\u308b\u3068\u3001<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&#x5B;root@ip-xxx-xxx-xxx-xxx ~]# rpm -qa |grep openjdk\r\njava-1.7.0-openjdk-1.7.0.121-2.6.8.1.69.amzn1.x86_64\r\njava-1.8.0-openjdk-1.8.0.111-1.b15.25.amzn1.x86_64\r\njava-1.8.0-openjdk-headless-1.8.0.111-1.b15.25.amzn1.x86_64\r\n&#x5B;root@ip-xxx-xxx-xxx-xxx ~]#\r\n<\/pre>\n<p>\u65e2\u306b\u3044\u308b\u3093\u3067\u3059\u3051\u3069\u30fc\u3002<br \/>\nAmazon Linux \u3063\u3066\u30c7\u30d5\u30a9\u30eb\u30c8 Java \u5165\u3063\u3066\u308b\u3093\u3067\u3059\u306d\u3002<br \/>\n\u3068\u3044\u3046\u3053\u3068\u3067\u3001alternatives \u30b3\u30de\u30f3\u30c9\u3067\u30b9\u30a4\u30c3\u30c1\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&#x5B;root@ip-xxx-xxx-xxx-xxx ~]# alternatives --config java\r\n\r\nThere are 2 programs which provide 'java'.\r\n\r\nSelection Command\r\n-----------------------------------------------\r\n*+ 1 \/usr\/lib\/jvm\/jre-1.7.0-openjdk.x86_64\/bin\/java\r\n2 \/usr\/lib\/jvm\/jre-1.8.0-openjdk.x86_64\/bin\/java\r\n\r\nEnter to keep the current selection&#x5B;+], or type selection number: 2\r\n&#x5B;root@ip-xxx-xxx-xxx-xxx ~]#\r\n<\/pre>\n<h2 id=\"setting1\">\u8a2d\u5b9a<\/h2>\n<p>Elasticsearch \u3092\u8a2d\u5b9a\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f <strong>\/etc\/elasticsearch\/elasticsearch.yml<\/strong> \u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnetwork.host: 0.0.0.0\r\n<\/pre>\n<p>\u3092\u8ffd\u8a18\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u3060\u3068\u3001localhost \u304b\u3089\u3057\u304b\u53d7\u3051\u4ed8\u3051\u306a\u3044\u306e\u3067\u3001\u3069\u306e\u30db\u30b9\u30c8\u304b\u3089\u3082\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\nKibana \u3092\u8a2d\u5b9a\u3002<br \/>\n\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306f <strong>\/etc\/kibana\/kibana.yml<\/strong> \u3067\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nserver.host: &quot;0.0.0.0&quot;\r\n<\/pre>\n<p>\u3092\u8ffd\u8a18\u3002<br \/>\nElasticsearch \u540c\u69d8\u306b ALL \u958b\u653e\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n\u904b\u7528\u5f62\u5f0f\u306b\u3088\u308a\u307e\u3059\u304c\u3001\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3067 IP \u5236\u9650\u3057\u305f\u65b9\u304c\u81ea\u5206\u306f\u597d\u304d\u3067\u3059\u3002<\/p>\n<h2 id=\"setting2\">\u8d77\u52d5<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\/etc\/init.d\/elasticsearch start\r\n\/etc\/init.d\/kibana start\r\n<\/pre>\n<p>\u3059\u3093\u306a\u308a\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<h2 id=\"setting3\">\u78ba\u8a8d<\/h2>\n<p>\u4e0b\u8a18\u3078\u30a2\u30af\u30bb\u30b9\uff01<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nhttp:\/\/&#x5B;EC2 \u306e IP \u30a2\u30c9\u30ec\u30b9]:5601\r\n<\/pre>\n<a href=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-9670 size-full\" src=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004.png\" alt=\"kibana_004\" width=\"1471\" height=\"761\" srcset=\"https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004.png 1471w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004-300x155.png 300w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004-768x397.png 768w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004-1024x530.png 1024w, https:\/\/www.skyarch.net\/blog\/wp-content\/uploads\/2016\/12\/kibana_004-728x376.png 728w\" sizes=\"auto, (max-width: 1471px) 100vw, 1471px\" \/><\/a>\n<p>\u3044\u3064\u3082\u306e\u753b\u9762\u3002<\/p>\n<h2 id=\"conclusion\">\u307e\u3068\u3081<\/h2>\n<p>\u307e\u3068\u3081\u308b\u4e8b\u306f\u7279\u306b\u7121\u3044\u3067\u3059\u304c\u3001\u6b21\u56de\u4f55\u3092\u53ef\u8996\u5316\u3057\u3066\u3084\u308d\u3046\u304b\u3002<\/p>\n<h2>\u304a\u307e\u3051<\/h2>\n<p>\u4eca\u56de Java \u306e\u30d2\u30fc\u30d7\u30b5\u30a4\u30ba\u306a\u3069\u4f55\u3082\u5909\u66f4\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u5c11\u306a\u3044\u3068 Elasticsearch \u8d77\u52d5\u6642\u306b\u4e0b\u8a18\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u4e8b\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&#x5B;root@ip-xxx-xxx-xxx-xxx ~]# \/etc\/init.d\/elasticsearch start\r\nStarting elasticsearch: OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12)\r\n#\r\n# There is insufficient memory for the Java Runtime Environment to continue.\r\n# Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory.\r\n# An error report file with more information is saved as:\r\n# \/tmp\/hs_err_pid2642.log\r\n&#x5B;FAILED]\r\n&#x5B;root@ip-xxx-xxx-xxx-xxx ~]#\r\n<\/pre>\n<p>\u30d2\u30fc\u30d7\u30b5\u30a4\u30ba\u4e0b\u3052\u308b\u304b\u3001\u30e1\u30e2\u30ea\u5897\u3084\u3059\u304b\u3002\u3067\u3001\u5bfe\u5fdc\u304c\u3067\u304d\u305d\u3046\u3067\u3059\u306d\u3002<br \/>\n\u30d2\u30fc\u30d7\u30b5\u30a4\u30ba\u306a\u3069 java \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u95a2\u3059\u308b\u8a2d\u5b9a\u306f <strong>\/etc\/elasticsearch\/jvm.options<\/strong> \u306b\u3066\u5909\u66f4\u3067\u304d\u305d\u3046\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u307f\u306a\u3055\u3093\u3053\u3093\u306b\u3061\u308f\u3002 fluentd \u304b\u3089 logstash \u306b\u4e57\u308a\u63db\u3048\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u3064\u3064\u3001 Elasticsearch 5.1.1 \u3068 Kibana 5.1.1 \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3084\u308a\u307e\u3059\u3002 \u6982\u8981 \u5b9f\u884c\u74b0\u5883 &#8230;<\/p>\n","protected":false},"author":16,"featured_media":9693,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"9668","footnotes":""},"categories":[194,195],"tags":[],"class_list":{"0":"post-9668","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-elasticsearch","8":"category-kibana","9":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/9668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=9668"}],"version-history":[{"count":23,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/9668\/revisions"}],"predecessor-version":[{"id":9707,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/9668\/revisions\/9707"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/9693"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=9668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=9668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=9668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}