{"id":1984,"date":"2015-07-08T00:49:07","date_gmt":"2015-07-07T15:49:07","guid":{"rendered":"http:\/\/tech.akat.info\/?p=1984"},"modified":"2015-07-09T22:47:51","modified_gmt":"2015-07-09T13:47:51","slug":"elasticsearch-kibana-%e6%b3%a8%e6%84%8f%e7%82%b9","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=1984","title":{"rendered":"elasticsearch + kibana \u6ce8\u610f\u70b9"},"content":{"rendered":"<h1>elasticsearch \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u3064\u3044\u3066<\/h1>\n<p><a href=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/07\/2015-07-07_234254.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/tech.akat.info\/wp-content\/uploads\/2015\/07\/2015-07-07_234254-300x83.png\" alt=\"2015-07-07_234254\" width=\"300\" height=\"83\" class=\"alignnone size-medium wp-image-1985\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/07\/2015-07-07_234254-300x83.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/07\/2015-07-07_234254-1024x282.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/07\/2015-07-07_234254-660x182.png 660w, https:\/\/tech.akat.info\/wp-content\/uploads\/2015\/07\/2015-07-07_234254.png 1332w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\npath\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u3064\u3044\u3066\u3001\u30b0\u30e9\u30d5\u5316\u3057\u305f\u6642\u306b\u5358\u8a9e\u304c\u5206\u5272\u3057\u3066\u8868\u793a\u3055\u308c\u308b<br \/>\nelasticsearch\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5206\u5272\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u305f\u3081<br \/>\n\u5206\u5272\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3001\u5b8c\u5168\u4e00\u81f4\u3068\u90e8\u5206\u4e00\u81f4\u3092\u53ef\u80fd\u306b\u3059\u308b\u305f\u3081path\u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u578b\u3092multi_field\u306b\u3057\u3066\u307f\u308b<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nroot@hostname:\/home\/shimizu# curl -XGET http:\/\/localhost:9200\/logstash-2015.07.07\/_mapping | jq '.'\r\n  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current\r\n                                 Dload  Upload   Total   Spent    Left  Speed\r\n100   359  100   359    0     0  51103      0 --:--:-- --:--:-- --:--:-- 59833\r\n{\r\n  &quot;logstash-2015.07.07&quot;: {\r\n    &quot;mappings&quot;: {\r\n      &quot;via_fluentd&quot;: {\r\n        &quot;properties&quot;: {\r\n          &quot;@timestamp&quot;: {\r\n            &quot;type&quot;: &quot;date&quot;,\r\n            &quot;format&quot;: &quot;dateOptionalTime&quot;\r\n          },\r\n          &quot;agent&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;code&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;host&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;method&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;path&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;referer&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;remote&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;size&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          },\r\n          &quot;user&quot;: {\r\n            &quot;type&quot;: &quot;string&quot;\r\n          }\r\n        }\r\n      }\r\n    }\r\n  }\r\n}\r\n\r\nroot@hostname:\/home\/shimizu# cat multi_field_template.json\r\n{\r\n    &quot;template&quot;: &quot;logstash-*&quot;,\r\n    &quot;mappings&quot;: {\r\n        &quot;_default_&quot;: {\r\n            &quot;_source&quot;: { &quot;compress&quot;: true },\r\n            &quot;properties&quot; : {\r\n                &quot;path&quot; : {\r\n                    &quot;type&quot;: &quot;multi_field&quot;,\r\n                    &quot;fields&quot;: {\r\n                        &quot;path&quot;: {\r\n                            &quot;type&quot;: &quot;string&quot;,\r\n                            &quot;index&quot; : &quot;analyzed&quot;\r\n                        },\r\n                        &quot;full&quot;: {\r\n                            &quot;type&quot;: &quot;string&quot;,\r\n                            &quot;index&quot; : &quot;not_analyzed&quot;\r\n                        }\r\n                    }\r\n                }\r\n            }\r\n        }\r\n    }\r\n}\r\n\r\nroot@hostname:\/home\/shimizu# curl -X PUT http:\/\/localhost:9200\/_template\/log_template -d &quot;`cat multi_field_template.json`&quot;\r\n{&quot;acknowledged&quot;:true}\r\n<\/pre>\n<p>@todo \u7d50\u679c\u306e\u8a18\u8f09<\/p>\n<h1>\u53c2\u8003URL<\/h1>\n<p>Kibana+Elasticsearch\u3067\u6587\u5b57\u5217\u306e\u5b8c\u5168\u4e00\u81f4\u3068\u90e8\u5206\u4e00\u81f4\u691c\u7d22\u306e\u4e21\u65b9\u3092\u5b9f\u73fe\u3059\u308b<br \/>\nhttp:\/\/qiita.com\/harukasan\/items\/4ec517d8d96f557367e1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>elasticsearch \u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u3064\u3044\u3066 path\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u3064\u3044\u3066\u3001\u30b0\u30e9\u30d5\u5316\u3057\u305f\u6642\u306b\u5358\u8a9e\u304c\u5206\u5272\u3057\u3066\u8868\u793a\u3055\u308c\u308b elasticsearch\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u5206\u5272\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u305f\u3081 \u5206\u5272\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u3001 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[70,38],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1984"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1984"}],"version-history":[{"count":4,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1984\/revisions"}],"predecessor-version":[{"id":1990,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/1984\/revisions\/1990"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1984"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1984"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1984"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}