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

IndexTemplate is not working with @elastic/elasticsearch >= 8.0.0 #239

Open
Blerr511 opened this issue Jan 29, 2024 · 0 comments
Open

IndexTemplate is not working with @elastic/elasticsearch >= 8.0.0 #239

Blerr511 opened this issue Jan 29, 2024 · 0 comments

Comments

@Blerr511
Copy link

Blerr511 commented Jan 29, 2024

Current Behavior:

When attempting to use winston-elasticsearch with the @elastic/elasticsearch library, we encounter compatibility issues. Specifically, the existsIndexTemplate() method within winston-elasticsearch is returning a boolean value instead of an object with a statusCode field. This behavior is unexpected and is causing problems with the integration.

Expected Behavior:

We expect the existsIndexTemplate() method to return an object with a statusCode field, as documented in the @elastic/elasticsearch library. This is crucial for proper error handling and compatibility with the library.

Steps to Reproduce:

To reproduce the issue:

Install winston-elasticsearch and @elastic/elasticsearch.
Use the winston-elasticsearch library with the @elastic/elasticsearch library in a Node.js environment.
Call the existsIndexTemplate method and observe the result.
Environment Information:

winston-elasticsearch Version: [@0.17.4]
@elastic/elasticsearch Version: [>=@8.0.0]
Elasticsearch Server Version: [>=8.0.0]
Node.js Version: []
Operating System: [
]
Additional Information:

We have identified that this issue may be related to a compatibility mismatch between the winston-elasticsearch library and the @elastic/elasticsearch library. It would be helpful if the maintainers could investigate and provide guidance on the compatible versions of these libraries.

Screenshots or Code Snippets:

Issue Type:

[x] Bug Report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant