Written by
in
ขั้นตอนการติดตั้ง Logstash บน Ubuntu 16.04
input { file { path => "/tmp/test.log" type=> "test" } } output { file { path => "/tmp/output.txt" } }
echo "$(date): New World" >> /tmp/test.log
ก็จะปรากฏไฟล์ /tmp/output.txt ขึ้น
input { file { path => "/tmp/test.log" type=> "test" } } output { elasticsearch { hosts => ["http://your.elastic.host:9200"] } }
ก็จะปรากฏบรรทัดใหม่ใน /tmp/output.txt และ มีการเขียนไปบน Elasticsearch ด้วย
แล้วยังไง ??? รอดูตอนต่อไป
See author's posts
You must be logged in to post a comment.
Leave a Reply
You must be logged in to post a comment.