2.1.4 • Published 1 year ago

pm2-elasticsearch-logger2 v2.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

pm2-elasticsearch-logger

npm version Build Status XO code style License

Module that sends logs of processes controlled by PM2 to Elasticsearch 📒🔍

Install

pm2 install pm2-elasticsearch-logger2

Configuration

Set options with the command

pm2 set pm2-elasticsearch-logger2:<option> <value>

PM2 will automatically restart the module after changing an option.

Options

optiondefault
elasticUrlURL of Elasticsearch APIhttp://localhost:9200
indexElasticsearch index to usepm2
typeDocument type to usepm2
hosthost attribute of the documentos.hostname()

Todo, Ideas

  • Configurable document attributes
  • Create mapping for @timestamp only if neccessary, control by config option

Contributing

Pull Requests welcome!

License

MIT (c) 2019 Sebastian Raff

2.1.2

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.1

3 years ago

2.1.0

3 years ago