pinojs / pino-elasticsearch

🌲 load pino logs into Elasticsearch
MIT License
179 stars 67 forks source link

Content-Type header [application/vnd.elasticsearch+x-ndjson; compatible-with=8] is not supported’) #188

Closed evle closed 5 months ago

evle commented 5 months ago

When I attempted to connect to the ES server 7.10 using this ES client, I encountered an error message as follows:

The "Content-Type" header ["application/vnd.elasticsearch+x-ndjson; compatible-with=8"] is not supported.

I checked package.json and found that es-plastic rely on elasticsearch.js 8+ , could this be the cause of problems?

mcollina commented 5 months ago

yes it is.

evle commented 5 months ago

yes it is.

Any suggestions for this ? Many thanks in advance

mcollina commented 5 months ago

Nope unfortunately, upgrade your ES db.