0.1.0 • Published 5 years ago
pino-datadogmatic v0.1.0
pino-datadogmatic
🌲 Pino transporter for Datadog and Logmatic
About
This is a pino transporter for both Datadog and Logmatic. Name come from contraction of both services.
Usage
Install it globally to pipe data to it.
node myserver | pino-datadogmatic
Once well configured, it will convey data to logmatic or datadog,
while outputing stdin to stdout like a tee
program.
It does so by prepending each line by an API key you would have configured.
Configuration
Transporter is to be configured with environment variables:
LOGMATIC_API_KEY
: Specify the API key for logmaticDATADOG_API_KEY
: Specify the API for datadog configuration. you can also specify you want to forward to the EU region by adding--eu
flag.
Depending which one environment variable you set, pin-datadogmatic
will the configured
to forward to the appropriate server.
Alternatively you can define HOST
, PORT
, and API_KEY
to forward to a custom server.
0.1.0
5 years ago