3.0.7 • Published 1 year ago

pm2-logger-elasticsearch v3.0.7

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

pm2-logger-elasticsearch

npm version dependencies Status Build Status XO code style License

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

Install

pm2 install pm2-logger-elasticsearch

Configuration

Set options with the command

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

PM2 will automatically restart the module after changing an option.

Options

optiondefault
elasticUrlURL of Elasticsearch/Opensearch APIhttp://localhost:9200
insecureallow https connections to servers with invalid certificatefalse
indexElasticsearch/Opensearch 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

3.0.7

1 year ago

3.0.6

1 year ago

3.0.5

1 year ago

3.0.4

1 year ago

3.0.3

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

2.0.0

1 year ago