Skip to content

pm2-gelf-pro 1.0.21

Install from the command line:
Learn more about npm packages
$ npm install @amplement/pm2-gelf-pro@1.0.21
Install via package.json:
"@amplement/pm2-gelf-pro": "1.0.21"

About this version

pm2-gelf-pro

Installation

First installation

production

pm2 install @amplement/pm2-gelf-pro

development

Go to your local directory

pm2 install .

Update

It should work if you do pm2 install @amplement/pm2-gelf-pro but if you get an error like:

Error: ENOENT: no such file or directory, mkdir '/tmp/@amplement/pm2-gelf-pro'

Do:

pm2 uninstall @amplement/pm2-gelf-pro
pm2 install @amplement/pm2-gelf-pro

Setup module environment variables

Bind environment vars to the module process:

pm2 set @amplement/pm2-gelf-pro:<param> <value>

For OVH provider use case. Send the private token from header + TLS cert

pm2 set @amplement/pm2-gelf-pro:gelf_adapterOptions_certpath client-cert.pem
pm2 set @amplement/pm2-gelf-pro:gelf_fields '{"X-OVH-TOKEN":"this-is-my-token"}'

Gelf pro default config is :

{
    "adapterName": "tcp-tls",
    "adapterOptions": {
        "host": "gra2.logs.ovh.com",
        "port": 12202
    }
}

Run

Run for tests

    pm2-gelf-pro % gelf_fields='{"X-OVH-TOKEN":"my-value"}' gelf_adapterOptions_certpath=ldp-is-09371.pem node send.js

Doc

To type values sent https://help.ovhcloud.com/csm/en-logs-data-platform-field-naming-conventions?id=kb_article_view&sysparm_article=KB0055662

Details


Assets

  • pm2-gelf-pro-1.0.21.tgz

Download activity

  • Total downloads 2
  • Last 30 days 0
  • Last week 0
  • Today 0