/demo-bug-winston-elasticsearch

Demonstration of a bug with the occurrence of duplicate logs

Primary LanguageJavaScript

Demo winston-elasticsearch bug

Intro

The problem of duplicating non-erroneous logs, when erroneous logs occur.

Required versions

  • node.js: 12.*
  • elasticsearch: 7.17.4
  • winston-elasticsearch: 0.16.1

Run commands

docker run --rm -p 9200:9200 -e "discovery.type=single-node" elasticsearch:7.17.4
# Wait for ES to start...

yarn start
# Wait end of script...

And go to http://localhost:9200/_search?pretty to see the duplicates