Event logging and querying server using node.js, redis and lua