winston-elasticsearch icon indicating copy to clipboard operation
winston-elasticsearch copied to clipboard

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

Open Blerr511 opened this issue 1 year ago • 0 comments

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: [>[email protected]] 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

Blerr511 avatar Jan 29 '24 13:01 Blerr511