This is a Graylog stream dashboard that runs in your shell. It is meant to be a perfect companion for example when performing a release on the main monitor and having the dashboard on the second monitor to keep an eye on errors and exceptions on your platform.
The most important library we use is blessed-contrib by Yaron Naveh. Great job on that!
The dashboard should run on Linux and OSX. Please report any issues in the issue tracker.
Install the dashboard: (You'll have to have node.js installed. Protip: It's in homebrew if you are on OSX.)
$ npm install graylog-cli-dashboard -g
View the options:
$ graylog-cli-dashboard --help
Usage: graylog-dashboard.js <command> [options]
Options:
--stream-id Graylog Stream ID
--host Full Graylog REST API URL
--poll-interval How often (in ms) to poll the Graylog server [default: 1000]
--username Graylog username
--password Graylog password
--cred-file-path Path to an optional credentials file
[default: "/Users/user/.graylog_dashboard"]
--help Show help [boolean]
Full example:
$ graylog-dashboard --stream-id 549d7f9fbee84e568d181655 --host http://graylog.example.org:12900
Make sure to run this with a recent version (>= 4) of node.js.
If you wish, you may place a YAML file containing any of the above options at a path of your choosing.
The default is ~/.graylog_dashboard
. For example:
username: lennart
password: sEcReT
A stream ID is no longer required on startup. You can specify one if you like, or choose one from the list on the right side of the screen.
You must have the graylog-dashboard
executable that gets installed by NPM in your PATH
. This is usually the case after installing
NPM in the first place but the output of npm install
should show you where it was installed if you cannot find it:
/usr/local/share/npm/bin/graylog-dashboard -> /usr/local/share/npm/lib/node_modules/graylog-cli-dashboard/graylog-dashboard.js
# In this OSX example graylog-dashboard has been linked to the graylog-dashboard.js file in /usr/local/share/npm/...
# Execute /usr/local/share/npm/bin/graylog-dashboard to try it out
Because this stuff looks like it is from space we suspect that people like to show it. Send us a photo of your dashboard running somewhere and we are more than happy to publish it here. Bonus points for messy desks or interesting stuff in the background.
This is a few helpful notes for all of us who do not regularly work with the node/NPM ecosystem and can't remember how to do stuff.
$ npm version [<newversion> | major | minor | patch]
$ git push origin master && git push --tags
$ npm publish