LogstashΒΆ

fast startup:

rvm install jruby
rvm use jruby

# background / other terminal
jruby --ng-server

RUBYVER=1.9
RUBY=jruby
RUBYCMD='jruby --ng'
export GEM_HOME="vendor/bundle/${RUBY}/${RUBYVER}"

jruby --ng lib/logstash/runner.rb agent -f foo.conf

Kill all data for debugging ($HOME is /srv/logstash):

service logstash stop
# clear all elasticsearch data
rm -r /data/elasticsearch
# remove last know index dates
rm /srv/logstash/.sincedb_*
service logstash start