Logstash input from Elasticsearch wrong configuration

I want my logstash to take data from Elasticsearch on some server. This is my logstash configuration for input from Elasticsearch

 input {
     elasticsearch{
         hosts => "127.0.0.1"
         index => "alerts-*"
         schedule => "* * * * *"
         user => 'admin'
         password => 'admin'
         query => '{ "query": {"match_all": {}} }'
         tags => "table_elastic_to_elastic"
         ssl_certificate_verification => false
         ssl => true
         size => 500
         docinfo => true
 
}}

While running pipeline from this configuration file I am getting Something is wrong with your configuration.

I am new to ELK stack. Please let me know where i am doing wrong.

That is a valid option for the elasticsearch output, but not the input. Delete it.

1 Like

Thank you. It is working fine now.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.