sematext / logsene-js

Log shipping library for sending logs to Sematext from JavaScript apps
https://sematext.com/cloud
Apache License 2.0
10 stars 9 forks source link

Fix errors sent in the bulk API being ignored #11

Closed GMierzwa closed 5 years ago

GMierzwa commented 5 years ago

When an index conflict or some other error occurs with some of the logs sent to Elasticsearch's bulk API the response will contain information about those errors. I've made some modifications, which we have been using internally at our company for a while now, to parse this response and emit 'error' events when those errors occur.

megastef commented 5 years ago

Do you use logsene-js with Elasticsearch or with Sematext Cloud?

GMierzwa commented 5 years ago

Elasticsearch