Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Elastic Api Version header #174

Merged
merged 12 commits into from Sep 29, 2023

Conversation

kaisecheng
Copy link
Contributor

@kaisecheng kaisecheng commented Sep 1, 2023

This commit adds "Elastic-Api-Version" : "2023-10-31" to request header for serverless

@jsvd
Copy link
Contributor

jsvd commented Sep 18, 2023

blocked for now by elastic/elastic-transport-ruby#66

…asticsearch into add_eav_header

# Conflicts:
#	CHANGELOG.md
#	logstash-filter-elasticsearch.gemspec
@@ -478,6 +479,15 @@ def test_connection!
end
end

def test_serverless_connection!
begin
get_client.client.info(:headers => LogStash::Filters::ElasticsearchClient::DEFAULT_EAV_HEADER ) if get_client.serverless?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use info instead of ping because the error message from ping is insufficient

Copy link
Contributor

@jsvd jsvd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor style nitpick. tested manually, LGTM

@kaisecheng
Copy link
Contributor Author

@jsvd tried to recreate the client. If the last commit doesn't make sense, I would like to revert it

Copy link
Contributor

@jsvd jsvd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kaisecheng
Copy link
Contributor Author

kaisecheng commented Sep 29, 2023

link the issue for cleaning up resources #175

@kaisecheng kaisecheng merged commit 7c94e3b into logstash-plugins:main Sep 29, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants