Skip to content

Commit

Permalink
[ADD] Logstash คำอธิบาย
Browse files Browse the repository at this point in the history
  • Loading branch information
wdrdres3qew5ts21 committed Dec 23, 2019
1 parent c560a34 commit 54c212f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions logstash/meetu-geopoint.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

}

Expand Down

0 comments on commit 54c212f

Please sign in to comment.