logmatic-logplex-sampler
A simple ruby app that samples and forwards incoming events to Logmatic.io
Installation
From the console:
git clone https://github.com/logmatic/logmatic-sampler
cd logmatic-sampler
heroku login
heroku create
git push heroku master
Or directly:
Usage
Once the app is deployed, you only need to setup a drain as follow:
heroku drains:add https://<your-logmatic-sampler>.herokuapp.com/sampler/<rate>/<your-api-key>
<your-logmatic-sampler>
is your instance of logmatic-sampler<rate>
the sampling rate. Set to10
for 10% and so on<your-api-key>
is your logmatic key