"Got response code '500' while injesting data by OD kibana using logstash

Hi,

I am building pipeline using logstash with OD ES and Kibana having version 7.6.1.
I am getting an error. I am making mistake in output as it not elasticsearch.
Pls let me know any suggestions regarding the same.

Output configuration of conf file-

output{
    stdout {codec => rubydebug}
         elasticsearch {
       #host ip to be changed to new test system
         hosts => ["<>"]
         index => "<>"
         user => "<>"
         password => "<>"
        #cacert => "/pem/logstash.pem"
        #ssl => false
        #ssl_certificate_verification => false
   }
}

Error-

[WARN ] 2021-10-29 13:21:14.537 [Ruby-0-Thread-9: :1] elasticsearch - Restored connection to ES instance {:url=>"https://admin:xxxxxx@<.........>/"}
[ERROR] 2021-10-29 13:21:14.558 [Ruby-0-Thread-9: :1] elasticsearch - Unable to get license information {:url=>"https://admin:xxxxxx@<.........>/", :exception=>LogStash::Outputs::ElasticSearch::HttpClient::Pool::BadResponseCodeError, :message=>"Got response code '500' contacting Elasticsearch at URL 'https://<.........>/_license'"}

HI
After install logstash plugin for opensearch, the pipeline is working fine.

Ref link-Logstash - OpenSearch documentation

Update output code-

output{
    stdout {codec => rubydebug}
     opensearch {
     hosts => ["<>"]
     index => "<>"
     user => "<>"
     password => "<>"
     ssl => true
     ssl_certificate_verification => false
   }
}
1 Like