Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
pino-socket
Advanced tools
This module provides a "transport" for pino that simply forwards messages to an arbitrary socket. The socket can be UDPv4 or TCPv4. The module can echo the received logs or work silently.
You should install pino-socket
globally for ease of use:
$ npm install --production -g pino-socket
Given an application foo
that logs via pino, and a system that
collects logs on port UDP 5000
on IP 10.10.10.5
, you would use pino-socket
like so:
$ node foo | pino-socket -a 10.10.10.5 -p 5000
--address
(-a
): the address for the destination socket. Default: 127.0.0.1
.--mode
(-m
): either tcp
or udp
. Default: udp
.--port
(-p
): the port for the destination socket. Default: 514
.--reconnect
(-r
): enable reconnecting to dropped TCP destinations. Default: off--reconnectTries <n>
(-t <n>
): set number (<n>
) of reconnect attempts
before giving up. Default: infinite--echo
(-e
): echo the received messages to stdout. Default: enabled.--no-echo
(-ne
): disable echoing received messages to stdout.--cee
(-c
): prefix the message with @cee:
for rsyslog cee
support. Default: disabled.--no-cee
(-nc
): explicitly disable CEE prefixing0.4.0
--reconnect
(-r
) to enable--reconnectTries <n>
(-t <n>
) to set the number of retries
before giving up (default: infinite)FAQs
A pino 'transport' for writing to a tcp, udp, or unix socket
The npm package pino-socket receives a total of 2,166 weekly downloads. As such, pino-socket popularity was classified as popular.
We found that pino-socket demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.