1.0.7 • Published 4 years ago

@worawut/pm2-elasticsearch-logger v1.0.7

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

pm2-elasticsearch-logger

npm version dependencies Status Build Status XO code style License

Module that sends logs of processes controlled by PM2 to Elasticsearch 📒🔍 fork form https://github.com/hobbyquaker/pm2-elasticsearch-logger

Install

pm2 install @worawut/pm2-elasticsearch-logger

Configuration

Set options with the command

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

PM2 will automatically restart the module after changing an option.

Options

optiondefault
elasticUrlURL of Elasticsearch APIhttp://localhost:9200
insecureallow https connections to servers with invalid certificatefalse
indexElasticsearch index to usepm2
typeDocument type to usepm2
hosthost attribute of the documentos.hostname()
apiKeyapi key for access to your elasticsearch

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

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago