resmoio / kubernetes-event-exporter

Export Kubernetes events to multiple destinations with routing and filtering
Apache License 2.0
753 stars 149 forks source link

Feature request: Sink - Elasticsearch 8.X support #189

Open gzOne2Free opened 1 month ago

gzOne2Free commented 1 month ago

Hi there,

I have deploy event exporter in our environment, and it does not work. The error log shown: ERR Indexing failed: {"error":"no handler found for uri [/kube-events-test/kube-event/2e10ee0e-1770-407d-9f88-4c9e3b8f69a9] and method [PUT]"} After search online, an answer mention that it cause by my Elasticsearch version is 8.X: From ElasticSearch 8.x version, only _doc is supported and it is just an endpoint name, not a document type. Link: No handler found for URI (elasticsearch)

And I looked into source code and confirm that it imported elasticsearch 7 SDK.

Is it possible to update elasticsearch SDK to support version 8.X?