NameError: uninitialized constant LogStash::Outputs::Gelf::GELF

Description

Hi,
i'm trying to run logstash and i got this error

root@c9-natty64:~# java -jar /opt/logstash-1.1.0-monolithic.jar agent -f /etc/logstash

NameError: uninitialized constant LogStash::Outputs::Gelf::GELF
const_missing at org/jruby/RubyModule.java:2569
register at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/outputs/gelf.rb:49
run_output at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:522
run_with_config at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:370
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232
NameError: uninitialized constant LogStash::Outputs::Gelf::GELF
const_missing at org/jruby/RubyModule.java:2569
register at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/outputs/gelf.rb:49
run_output at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:522
run_with_config at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:370
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232
NameError: uninitialized constant LogStash::Outputs::Gelf::GELF
const_missing at org/jruby/RubyModule.java:2569
register at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/outputs/gelf.rb:49
run_output at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:522
run_with_config at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:370
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232
NameError: uninitialized constant LogStash::Outputs::Gelf::GELF
const_missing at org/jruby/RubyModule.java:2569
register at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/outputs/gelf.rb:49
run_output at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:522
run_with_config at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:370
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232
NameError: uninitialized constant LogStash::Outputs::Gelf::GELF
const_missing at org/jruby/RubyModule.java:2569
register at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/outputs/gelf.rb:49
run_output at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:522
run_with_config at file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:370
call at org/jruby/RubyProc.java:268
call at org/jruby/RubyProc.java:232
Exception in thread "LogStash::Agent" org.jruby.exceptions.RaiseException: (SystemExit) uninitialized constant LogStash::Outputs::Gelf::GELF
at org.jruby.RubyThread.join(org/jruby/RubyThread.java:509)
at LogStash::Agent.wait(file:/opt/logstash-1.1.0-monolithic.jar!/logstash/agent.rb:277)
at logstash.runner.main(logstash/runner.rb:17)
at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1603)
at logstash.runner.main(logstash/runner.rb:17)
at logstash.runner.(root)(logstash/runner.rb:70)

/etc/logstash is a directory that includes multiple shipper files every one is structured as following :
e.g.: /etc/logstash/nginx

input {
file {
type => "nginx"
path => ["/varlog/nginx/*.log"]
}

}

output {
gelf {
host => "192.168.1.5"
facility => "nginx"
}
}

any ideas what is wrong with this case ?

Thanks in advance

Activity

Show:
EslamH
February 6, 2012, 1:16 PM

Hi,
it seems that this error doesn't appear every time , sometimes "java -jar /opt/logstash-1.1.0-monolithic.jar agent -f /etc/logstash" runs successfully !

Jordan Sissel
August 21, 2012, 7:17 AM

I can't reproduce this, and it seems you can't either (at least not reliably)

If you ever see this again, feel free to re-open this ticket and let me know!

Assignee

Jordan Sissel

Reporter

EslamH

Labels

Affects versions

Configure