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 ด้วย
แล้วยังไง ??? รอดูตอนต่อไป
Your email address will not be published. Required fields are marked *
Comment *
Name *
Email *
Website
Save my name, email, and website in this browser for the next time I comment.
Δ
Leave a Reply