This is a simple dashboard-skeleton, which allows the submission of events into a rotating buffer. New events push out old ones, and we cap the events to the the most recent 1000.
This server was discussed in the article Building a simple dashboard with redis and node.js .
Assuming you have
redis installed then you may launch
the server by running:
This will result in a process accepting UDP submissions on port 4433.
Submitting events is as simple as firing UDP packets at the server which is now running.
NOTE: The server will bind on all available interfaces, so you should firewall submissions from malicious hosts.
There is a sample perl-client included to submit events to the
running on the localhost.
perl submit.pl "This is a test" perl submit.pl "I like cake."
There is a simple Ruby-based server supplied which would make a good starting point for a more featureful event-viewer.
Assuming you have Ruby, and the sinatra + redis gems installed you can launch the server with:
cd ./viewer/ ./server
This will launch a server which will process two URLs:
- The front-page of the application.
- Return a JSON array of hashes, corresponding to each message.
The front-page uses jQuery to dynamically load the JSON array and display it. You can see a screenshot here.
Please report any issue via the github repository:
Steve Kemp firstname.lastname@example.org