This is a sample application that stores syslog messages in Riak Search, using riak-js.
Originally created by Mathias Meyer and Sean Cribbs for the “Riak with node.js” Basho webinar, March 15, 2011.
npm bundle(installs dependencies)- Copy
config/riak.js.exampletoconfig/riak.jsand tweak to fit your setup. Make sure to have Riak Search installed and running already. search-cmd set-schema syslog config/syslog_schema.erlsearch-cmd install syslog- Startup the app:
node server.js - Feed some data into the syslog server:
node lib/syslog/producer.js - Search it from the web application:
http://localhost:8001/