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:
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.
Current Behavior:
When attempting to use
winston-elasticsearch
with the@elastic/elasticsearch
library, we encounter compatibility issues. Specifically, theexistsIndexTemplate()
method withinwinston-elasticsearch
is returning aboolean
value instead of anobject
with astatusCode
field. This behavior is unexpected and is causing problems with the integration.Expected Behavior:
We expect the
existsIndexTemplate()
method to return an object with astatusCode
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