pm2-elasticsearch-logger2
v2.3.5
Published
Send PM2 logs to Elasticsearch
Downloads
2
Readme
pm2-elasticsearch-logger
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
| option | | default |
| ------ | --------- | ------- |
| elasticUrl | URL of Elasticsearch API | http://localhost:9200 |
| index | Elasticsearch index to use | pm2 |
| host | host attribute of the document | os.hostname() |
| username | username if you don't use the basic auth url format |
| password | password if you don't use the basic auth url format |
Todo, Ideas
- Configurable document attributes
- Create mapping for
@timestamponly if neccessary, control by config option
Contributing
Pull Requests welcome!
License
MIT (c) 2019 Sebastian Raff
