@easynvest/pm2-logstash

0.1.1 • Public • Published

pm2-logstash

An quick and dirty library to redirect your PM2 logs to a Logstash input stream

Installation

Tested on node 8.11.3, requires pm2.

  pm2 install @easynvest/pm2-logstash

Configuration

This module has multiple configuration variables, all fed into node-logstash-client

  • "logstash_host": The hostname of the logstash input (Default: '127.0.0.1')
  • "logstash_port": The port to send logstash messages to (Default: 9997)
  • "logstash_type": The connection type (Default: 'UDP') - udp, tcp, memory

After having installed the module:

  pm2 set @easynvest/pm2-logstash:<param> <value>

Examples:

  pm2 set @easynvest/pm2-logstash:logstash_host my.cool.host
  pm2 set @easynvest/pm2-logstash:logstash_port 12345

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @easynvest/pm2-logstash

    Weekly Downloads

    1

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    2.99 kB

    Total Files

    3

    Last publish

    Collaborators

    • iamtchelo
    • danicastilho
    • wellyal
    • celso-henrique
    • guilhermegregio
    • rafaellucio