Logstash for elasticsearch show

I just use a very simple configuration that writes data from a file to elasticsearch.

Here is my configuration

input { file { path => "/var/log/logstash/logstash.log" start_position => beginning } } output { elasticsearch { protocol => "http" } stdout {} } 

and when starting logstash with

./bin/logstash -f / path / to / mycofig / i-file-o-es.conf

I get an error

Unknown 'protocol' parameter for elasticsearch {: level =>: error}

I can get this configuration to work by removing the protocol =>, so I think my plugin is installed correctly.

Has anyone encountered this problem before? Thanks!

+5
source share
1 answer

I assume that you are using the beta version of Logstash 2.0. In this latest version, they updated the elasticsearch output plugin, which now has no protocol settings, because the default protocol is http .

If you want to specify the protocol parameter (i.e. use the node or transport protocol), you need to use the new elasticsearch_java output plugin

+7
source

Source: https://habr.com/ru/post/1233019/


All Articles