-
Notifications
You must be signed in to change notification settings - Fork 0
Logstash setup
Gukie edited this page Apr 17, 2017
·
1 revision
目前 logstash的 input是 stdin.
ElasticSearch 的port info:
publish_address {127.0.0.1:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}
publish_address {127.0.0.1:9200}, bound_addresses {[::1]:9200}, {127.0.0.1:9200}
refer:
1. https://www.elastic.co/guide/en/logstash/current/installing-logstash.html
2. https://www.elastic.co/downloads/logstash
3. https://www.elastic.co/guide/en/logstash/current/configuration.html
logstash-es.conf file:
input { stdin { } }
output {
elasticsearch { hosts => ["localhost:9200"] }
stdout { codec => rubydebug }
}
startup:
bin/logstash -f config/lokia/logstash-es.conf
port info:
Successfully started Logstash API endpoint {:port=>9600}