
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
@farmersdog/bunyan-syslog
Advanced tools
bunyan-syslog is a stream for bunyan
that consumes raw
records from bunyan and sends them to a remote syslog server.
npm install -S @farmersdog/bunyan-syslog
This fork is compliant with RFC 5424. It supports Structured Data component in messages as well as TLS over TCP.
Local syslog bindings have been removed.
var bunyan = require('bunyan');
var bsyslog = require('bunyan-syslog');
var log = bunyan.createLogger({
name: 'foo',
streams: [{
level: 'debug',
type: 'raw',
stream: bsyslog.createBunyanStream({
type: 'tcp',
tls: true,
data: '[structured data]'
facility: bsyslog.local0,
host: '192.168.0.1',
port: 514
})
}]
});
log.debug({ foo: 'bar' }, 'hello %s', 'world');
That's pretty much it. You create a syslog stream, and point it at a syslog
server (UDP by default; you can use TCP by setting type: tcp
in the
constructor).
Note you must pass type: 'raw'
to bunyan in the top-level
stream object or this won't work.
This module maps bunyan levels to syslog levels as follows:
+--------+--------+
| Bunyan | Syslog |
+--------+--------+
| fatal | emerg |
+--------+--------+
| error | error |
+--------+--------+
| warn | warn |
+--------+--------+
| info | info |
+--------+--------+
| * | debug |
+--------+--------+
MIT.
FAQs
Syslog Stream for Bunyan
We found that @farmersdog/bunyan-syslog demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.