pm2-elasticlogs

Insert pm2 logs to elasticsearch

Usage no npm install needed!

<script type="module">
  import pm2Elasticlogs from 'https://cdn.skypack.dev/pm2-elasticlogs';
</script>

README

Description

PM2 module to send logs to elasticsearch

$ npm install pm2 -g

$ pm2 install pm2-elasticlogs

To modify the config values you can use the following commands:

pm2 set pm2-elasticlogs:elasticsearch_host 'http://localhost:9200'
pm2 set pm2-elasticlogs:elasticsearch_index logs
pm2 set pm2-elasticlogs:app_name all

Uninstall

$ pm2 uninstall pm2-elasticlogs

License

MIT