• Stars
    star
    215
  • Rank 183,925 (Top 4 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created almost 10 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Graylog stream dashboard that runs in your shell.

The Graylog CLI dashboard

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.

screencast

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.

Installation

Install the dashboard: (You'll have to have node.js > 6.0 installed. Protip: It's in homebrew if you are on OSX.)

$ npm install graylog-cli-dashboard -g

View the options:

$ graylog-dashboard --help
Usage: graylog-dashboard.js <command> [options]

Rest API Options:
  --server-url    (Deprecated; use api-host, path, port) Full Graylog API URL
  --api-host      Graylog API Hostname
  --api-port      Graylog API Port                               [default: 9000]
  --api-path      Graylog API Path                            [default: "/api/"]
  --api-protocol  Graylog API Protocol                        [default: "https"]
  --username      Graylog API Username
  --password      Graylog API Password

Options:
  --stream-title    Graylog Stream Title
  --poll-interval   How often (in ms) to poll the Graylog server [default: 1000]
  --cred-file-path  Path to an optional credentials file
                               [default: "/Users/samuelreed/.graylog_dashboard"]
  --insecure        If set, will not verify leaf certificates.
  --help            Show help                                          [boolean]

Full example:

$ graylog-dashboard --stream-title "Production Webservers" --api-host graylog.example.org

Make sure to run this with a recent version (>= 4) of node.js.

Credentials File

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
api-host: graylog.foo.com
api-path: /
api-port: 12900

If you do not provide this file, and do not provide required data via command options, you will be prompted.

Specifying a Stream

Choose one from the list on the right side of the screen, or specify a --stream-title in the command.

If the graylog-dashboard executable cannot be found

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

The Dashboard in the Wild

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.

Working with NPM

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.

Bumping and releasing a new version

$ make version [major | minor | patch]
$ make publish

More Repositories

1

graylog2-web-interface

[DEPRECATED]
612
star
2

gelf-rb

Ruby GELF library (Graylog Extended Log Format)
Ruby
153
star
3

graylog-plugin-slack

Graylog alarm callback for Slack
Java
113
star
4

graylog-plugin-metrics-reporter

Graylog Metrics Reporter Plugins
Java
77
star
5

graylog-contentpack-nginx

A nginx content pack for Graylog
75
star
6

graylog-plugin-spaceweather

Ever needed a proof that a solar storm made a bit flip and your code crash? Now you can! Correlate proton density to the response time of your app and the ion temperature to your exception rate.
Java
66
star
7

gelf-php

[DEPRECATED] PHP classes to send GELFmessages
PHP
62
star
8

graylog2-stream-dashboard

[DEPRECATED] Get a dashboard optimized view on your Graylog2 streams.
ApacheConf
56
star
9

log4j2-gelf

GELF Appender for Apache Log4j 2
Java
52
star
10

collector

[DEPRECATED] The Graylog Collector
Java
40
star
11

apache-mod_log_gelf

Apache2 module for writing access logs to Graylog
C
31
star
12

syslog4j-graylog2

The syslog4j fork from Graylog2. This is used since 0.10.0. The original code was very "special" and no actions were taken to improve it. This is planned to be replaced completely in future versions.
Java
31
star
13

graylog-plugin-snmp

Graylog plugin to receive SNMP traps
Java
26
star
14

shadowCA

Create a CA and Certificates to use in your Infrastructure
Shell
21
star
15

graylog-plugin-metrics

Graylog output plugin for Graphite and Ganglia
Java
18
star
16

graylog-plugin-mongodb-profiler

Graylog input plugin that reads MongoDB profiler data
Java
17
star
17

check-graylog2-stream

Icinga/Nagios check to monitor Graylog2 stream alerts
Go
14
star
18

jersey-netty

[DEPRECATED] Netty 3 container for Jersey 2
Java
14
star
19

graylog-plugin-redis

Redis plugin for Graylog
Java
14
star
20

graylog-plugin-mqtt

MQTT Input Plugin for Graylog
Java
13
star
21

graylog-plugin-internal-logs

Graylog plugin to record internal logs of Graylog efficiently instead of sending them over the network
Java
12
star
22

graylog-plugin-pagerduty

A Graylog plugin that triggers PagerDuty events
Java
11
star
23

play2-graylog2

[DEPRECATED] How to send logs from the Play! framework to Graylog
Java
11
star
24

graylog-plugin-splunk

Graylog output plugin that forwards one or more streams of data to Splunk via TCP.
Java
11
star
25

graylog2-puppet

[DEPRECATED] Puppet module to install and manage a Graylog 1.x system.
Puppet
10
star
26

graylog-plugin-dnsresolver

Message filter plugin to reverse lookup the source field
Java
9
star
27

graylog-plugin-hipchat

Alarm callback that is writing to HipChat chatrooms
Java
9
star
28

jest-elasticsearch-rest

[WIP] Elasticsearch low-level REST client adapter for Jest
Java
8
star
29

graylog-contentpack-cisco-catalyst

Graylog content pack for Cisco Catalyst devices
8
star
30

graylog-plugin-twitter

Graylog input plugin that reads Twitter messages based on keywords in realtime
Java
8
star
31

graylog-plugin-riemann

Graylog2 output plugin to send events to a Riemann instance
Java
7
star
32

graylog-vscode-extension

TypeScript
5
star
33

graylog-contentpack-heroku

Graylog content pack for Heroku logs
5
star
34

graylog-example-plugin-function-strlen

Example plugin: Pipeline function that returns the length of a string.
Java
4
star
35

graylog-contentpack-haproxy

Graylog content pack to parse the standard HAProxy HTTP logs.
4
star
36

metrics-gelf

A GELF reporter for the Dropwizard Metrics library
Java
4
star
37

apollo

The Graylog support data collector
Go
3
star
38

graylog-playground

Shell
3
star
39

graylog-plugin-rundeck

Graylog alarm callback plugin for Rundeck
Java
3
star
40

graylog-plugin-nats

NATS plugin for Graylog
Java
3
star
41

graylog-contentpack-rails

Content pack for this official guide: https://marketplace.graylog.org/addons/2a5a0954-96f7-4c86-895b-a44e358a9571
2
star
42

regex-library-shootout

Simple comparison benchmarks for various regex-based operations
Java
2
star
43

graylog-plugin-twiliosms

Transport that sends alarms via the Twilio SMS API
Java
2
star
44

graylog-plugin-jabber

Jabber Alarmcallback Plugin for Graylog
Java
2
star
45

graylog-plugin-filter-messagesize

A filter plugin that identifies messages with an estimated size over a certain threshold.
Java
1
star
46

graylog-plugin-zeromq

ZeroMQ integration for Graylog
Java
1
star
47

svloggelfd

Sends service log messages as UDP/GELF to a Graylog server
Go
1
star
48

java-compression-benchmarks

Java
1
star
49

graylog-mpproxy-messina

Bunyan (node.js) GELF support
1
star
50

graylog-web-plugin

[DEPRECATED] Containing helpers to streamline web interface plugin development
JavaScript
1
star
51

graylog-plugin-archetype

[DEPRECATED] Maven archetype to write Graylog2 plugins
Java
1
star
52

graylog-plugin-ipanonymizer

A graylog-server plugin that replaces the last octet of IP addresses in messages with xxx
Java
1
star
53

udpcat

CLI utility to send text files to a remote host via UDP, one packet per line
Makefile
1
star
54

eaio-uuid

Fork of eaio-uuid that works with Java 9+
Java
1
star