V8 engine extension for Node allowing native interaction with systemd and its journal
JavaScript C++ Python
Latest commit 585f412 Jul 10, 2014 @marktheunissen marktheunissen Update README
Failed to load latest commit information.
lib Non string handling May 20, 2014
.gitignore Create node.js extension to work with journald Sep 1, 2012
LICENSE Add some comments, improve support for winston Sep 4, 2012
README.md Update README Jul 10, 2014
binding.gyp Use -journal not -daemon for linking May 20, 2014
package.json Bump package version Jul 10, 2014
test.js Non string handling May 20, 2014



Node.js module for native access to the journald facilities in recent versions of systemd. In particular, this capability includes passing key/value pairs as fields that journald can use for filtering.

This should normally be installed using npm

Also includes a plugin for winston


Very basic (see test.js for more detailed example):

  var journald = require('journald').Log;
  journald.log('MESSAGE=hello world', 'ARG1=first_argument', 'ARG2=second_argument');


Install node-gyp to build the extension:

sudo npm install -g node-gyp

Use npm to build the extension:

npm install

Or, build the C++ extension manually:

node-gyp configure && node-gyp build

Run test app:

node test.js

Viewing Output

Quick way to view output with all fields as it comes in:

sudo journalctl -f -p7 --output=json-pretty


(c) 2012 Mark Theunissen