Skip to content

Instantly share code, notes, and snippets.

@awheeler
Created October 23, 2012 20:45
Show Gist options
  • Save awheeler/3941429 to your computer and use it in GitHub Desktop.
Save awheeler/3941429 to your computer and use it in GitHub Desktop.
Logstash Config And Dump
input { stdin { type => "stdin-type"}}
output {
stdout { debug => true debug_format => "json"}
elasticsearch_http {
# cluster => "elasticsearch"
host => "192.168.67.136"
port => 9200
}
}
java -jar ../logstash-1.1.3-monolithic.jar agent -v --config logstash-simple.conf
Read config {"level":"info"}
Start thread {"level":"info"}
Output registered {"plugin":"LogStash::Outputs::Stdout: {\"debug\"=>true, \"debug_format\"=>\"json\", \"type\"=>\"\", \"tags\"=>[], \"exclude_tags\"=>[], \"fields\"=>[]}","level":"info"}
Input registered {"plugin":"LogStash::Inputs::Stdin: {\"type\"=>\"stdin-type\", \"debug\"=>false, \"add_field\"=>{}}","level":"info"}
OpenSSL::X509::StoreError: loading file failed: jar:file:/root/logstash-1.1.3-monolithic.jar!/gems/ftw-0.0.20/lib/ftw/cacert.pem
add_file at org/jruby/ext/openssl/X509Store.java:151
initialize at jar:file:/root/logstash-1.1.3-monolithic.jar!/gems/ftw-0.0.20/lib/ftw/agent.rb:74
register at file:/root/logstash-1.1.3-monolithic.jar!/logstash/outputs/elasticsearch_http.rb:45
run_output at file:/root/logstash-1.1.3-monolithic.jar!/logstash/agent.rb:735
synchronize at org/jruby/ext/thread/Mutex.java:149
run_output at file:/root/logstash-1.1.3-monolithic.jar!/logstash/agent.rb:735
start_output at file:/root/logstash-1.1.3-monolithic.jar!/logstash/agent.rb:365
Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (SystemExit) loading file failed: jar:file:/root/logstash-1.1.3-monolithic.jar!/gems/ftw-0.0.20/lib/ftw/cacert.pem
at org.jruby.RubyThread.join(org/jruby/RubyThread.java:598)
at RUBY.wait(file:/root/logstash-1.1.3-monolithic.jar!/logstash/agent.rb:329)
at logstash.runner.main(logstash/runner.rb:40)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1612)
at logstash.runner.main(logstash/runner.rb:39)
at logstash.runner.(root)(logstash/runner.rb:113)
@awheeler
Copy link
Author

elasticsearch output works, elasticsearch_http output gives this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment