The pipeline works fine when I remove ‘s’ out of https, and make plugins.security.disabled=true in opensearch.yml.
It threw following error when I tried with http by commenting the “plugins.security.disabled=true” portion in opensearch.yml.
[2023-11-09T11:56:09,189][WARN ][logstash.outputs.opensearch][main] Attempted to resurrect connection to dead OpenSearch instance, but got an error {:url=>"http://localhost:9200/", :exception=>LogStash::Outputs::OpenSearch::HttpClient::Pool::HostUnreachableError, :message=>“OpenSearch Unreachable: [http://localhost:9200/][Manticore::ClientProtocolException] localhost:9200 failed to respond”
@NandanIK When you enable security plugin then you must connect with HTTPS protocol to OpenSearch node.
How did you deploy the cluster?
Is your Logstash running at the same host/vm as OpenSearch nodes?
If your OpenSearch cluster is using self signed certificates then you need to turn off certificate verification or present RootCA of the OpenSearch node in the OpenSearch output’of Logstash config.
Hello @pablo , Thanks for response, yes…!, our 1] Logstash and OpenSearch Running on same Virtual machine, 2] Can you please guide how to turn off self signed certificates,
@Afzal Try the below config with security plugin enabled in OpenSearch.
opensearch {
hosts => ["https://localhost:9200"]
# SSL enabled
ssl => true
ssl_certificate_verification => false
# The Logstash Username and Password created earlier
user => ""
password => ""
# The name of the index
index => "<index_name>"
}
Hello @pablo , I need one more help, whenever I tried for pushing data to OpenSearch, I am getting this line for logstash run - "Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>} " Not able to push the logs into opensearch
I request please help me on this,