Closed kaisecheng closed 1 year ago
~blocked by https://github.com/elastic/logstash-filter-elastic_integration/issues/85~ confirmed rebase to Resync with Elasticsearch 8.9 solved the build issue
I wish I could send the header regardless of stateful or stateless. The behavior of ES handling version header in stateful is undefined. It could be anything and we just don't know atm. The implementation is defensive for all plugins
This commit adds a request GET
/
in register phase to check if it is a serverless Elasticsearch. If so, recreate the rest client with the default header "Elastic-Api-Version".