@restorecommerce/winston-elasticsearch-transformer

0.1.10 • Public • Published

winston-elasticsearch-transformer

Build StatusDependenciesCoverage Status

Transformer function for the winston-elasticsearch transport, which transforms log messages in a Logstash/ Kibana optimized form and optimizes the data for the index mapping.

The following changes and transformations are applied to log messages:

  • Adds a @timestamp field with the current date/ time
  • Adds a host property with the current host name
  • Adds a rid (request-id) based on cls-rtracer

This module also comes with a suitable mapping template and an index pattern that can be imported in Kibana.

Package Sidebar

Install

npm i @restorecommerce/winston-elasticsearch-transformer

Weekly Downloads

0

Version

0.1.10

License

MIT

Unpacked Size

13.4 kB

Total Files

8

Last publish

Collaborators

  • radu1990
  • vanthome
  • akumarnpm
  • dani723
  • vilsol