From 54c212f3e26ac52e3d84581545abeb7199bf8440 Mon Sep 17 00:00:00 2001 From: LinJingYun Date: Mon, 23 Dec 2019 18:06:12 +0700 Subject: [PATCH] =?UTF-8?q?[ADD]=20Logstash=20=E0=B8=84=E0=B8=B3=E0=B8=AD?= =?UTF-8?q?=E0=B8=98=E0=B8=B4=E0=B8=9A=E0=B8=B2=E0=B8=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logstash/meetu-geopoint.conf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/logstash/meetu-geopoint.conf b/logstash/meetu-geopoint.conf index 5972ff3..c5df6e8 100644 --- a/logstash/meetu-geopoint.conf +++ b/logstash/meetu-geopoint.conf @@ -7,17 +7,17 @@ # โดยเราสามารถลองอ่านข้อมูลเพิ่มเติมได้จาก https://www.elastic.co/guide/en/logstash/current/filter-plugins.html input{ elasticsearch { - hosts => "http://meetu-milktea.tk:9200" - index => "meetu.events_backup" - query => '{ "query": { "match_all": { } } }' + hosts => "http://meetu-milktea.tk:9200" # แก้ host ที่เป็น input ให้ถูกต้องหากใช้บน localhost ก็ให้ใช้ localhost + index => "meetu.events_backup" # index ที่จะทำการดึงข้อมูลมาใช้ parsing + query => '{ "query": { "match_all": { } } }' # จะดึงข้อมูลจำนวนเท่าใดด้วยผ่าน query ของ elasticsearch } } filter { elasticsearch { - hosts => "http://meetu-milktea.tk:9200" - index => "meetu.events_backup" + hosts => "http://meetu-milktea.tk:9200" # ต้องเหมือนกับ input + index => "meetu.events_backup" # ต้องเหมือนกับ input }