opensearch-project / logstash-output-opensearch

A Logstash plugin that sends event data to a OpenSearch clusters and stores as an index.
https://opensearch.org/docs/latest/clients/logstash/index/
Apache License 2.0
104 stars 80 forks source link

[BUG] Unexpected behaviour if remote Opensearch response is not "common" #236

Closed zhavir closed 7 months ago

zhavir commented 7 months ago

Describe the bug I'm trying to setup my pipeline with the Logstash and OpenSearch plugin. The connection seems working fine until the client tries to read the response received by the remote Opensearch instance.

To Reproduce Difficult to reproduce because it is a self-hosted Opensearch instance with a proxy API on top

Expected behavior no expectation raised

Plugins Please list all plugins currently enabled.

Screenshots image

Additional context Add any other context about the problem here.

dblock commented 7 months ago

Looks like the plugin always expects JSON. That feels by design, doesn't it?

zhavir commented 7 months ago

there was a problem from my side, I was sure that I was trying to contact directly an OpenSearch instance. Instead, it was an Logstash. I've solved the issue by using the http plugin