/opt/logstash/bin/logstash -f /etc/logstash/conf.d/logstash_test.conf
test.conf:
input {
stdin{}
}
output {
elasticsearch { host => localhost }
stdout {
codec => rubydebug
}
}
why this error?plz.thanks.
/opt/logstash/bin/logstash -f /etc/logstash/conf.d/logstash_test.conf
test.conf:
input {
stdin{}
}
output {
elasticsearch { host => localhost }
stdout {
codec => rubydebug
}
}
why this error?plz.thanks.
It explains it in the error - The setting
hostin plugin
elasticsearchis obsolete and is no longer available. Please use the 'hosts' setting instead.
Check the docs - https://www.elastic.co/guide/en/logstash/current/plugins-outputs-elasticsearch.html#plugins-outputs-elasticsearch-hosts
replace elasticsearch {host => localhost} to elasticsearch { hosts => "localhost"}
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.