Logstash LoadError: no such file to load — i18n

LoadError: no such file to load -- i18n
require at org/jruby/RubyKernel.java:1085
(root) at /usr/local/Cellar/logstash/1.4.2/libexec/lib/logstash/runner.rb:46

I received this error when trying to run logstash from within a Ruby script for automated integration test purposes. Turns out the ‘RUBYOPT’ environment variable was getting set, most likely by bundler, causing the issue. I simply cleared the env var before executing logstash:

RUBYOPT='' logstash -e '{config}'

or

unset RUBYOPT && logstash -e '{config}'
Like what you read? Give J Denney a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.