Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
bunyan-syslog-udp
Advanced tools
A pure-JS implementation of bunyan syslog stream on top of UDP protocol.
npm install bunyan bunyan-syslog-udp
Verify that syslog via UDP is enabled on your system. By default, the syslog daemon listens on port 514.
In order to take advantage of the @CEE cookie functionality either rsyslog
or syslog-ng
must be installed.
For rsyslog, make sure the mmjsonparse module is loaded in /etc/rsyslog.conf
module(load="mmjsonparse") # for parsing CEE-enhanced syslog messages
var bunyan = require('bunyan');
var bsyslog = require('bunyan-syslog-udp');
var bstream = bsyslog.createBunyanStream({
name: 'udptest', // Optional. Defaults to process.title || process.argv[0]
host: '127.0.0.1', // Optional. Defaults to '127.0.0.1'
port: 514, // Optional. Defaults to 514
facility: 'local0', // Case-insensitive. Optional. Defaults to local0
prefix: '@cee: ' // Add @cee cookie to message
});
var log = bunyan.createLogger({
streams: [{
type: 'raw', // Always use 'raw' bunyan stream
level: 'trace', // Minimum log level
stream: bstream
}]
});
// Emit a log message
log.debug("This is a test");
// and close the socket
bstream.close();
FAQs
UDP Syslog Stream for Bunyan
The npm package bunyan-syslog-udp receives a total of 288 weekly downloads. As such, bunyan-syslog-udp popularity was classified as not popular.
We found that bunyan-syslog-udp 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.