logstash-1.0.17-monolithic.jar wont run on RH EL 5.5
Description
Gliffy Diagrams
Activity
Show:
Gildas Le Nadan June 19, 2012 at 3:25 PM
Hi,
I had a similar issue with logstash-1.1.0-monolithic.jar and a RH 5.5 i386.
Fixed it for me by installing java-1.6.0-openjdk.i386.
Jordan Sissel December 8, 2011 at 8:08 PM
Ping? I will probably close this soon if there's no response - best I can tell the problem is caused by using a version of Java that is too old.
Jordan Sissel October 18, 2011 at 4:40 AM
Still having issues?
Jordan Sissel September 26, 2011 at 5:01 PM
Sounds like you're running an old version of java - What version of java do you have?
Fixed
Details
Details
Assignee
Jordan Sissel
Jordan SisselReporter
Thomas Blevins
Thomas BlevinsLabels
Affects versions
Created September 26, 2011 at 3:22 PM
Updated April 19, 2013 at 8:19 PM
Resolved June 19, 2012 at 4:16 PM
I am getting errors trying to run the monolithic.jar on RHEL 5.5. I have followed the instructions and could have missed something but not sure what it is.
Here is my mylogstash.conf
input { file { type => "linux-syslog" # Wildcards work, here :) path => [ "/var/log/*.log", "/var/log/messages", "/var/log/syslog" ] } file { type => "apache-access" path => "/var/log/apache2/access.log" } file { type => "apache-error" path => "/var/log/apache2/error.log" } } output { # Emit events to stdout for easy debugging of what is going through # logstash. stdout { } # This will use elasticsearch to store your logs. # The 'embedded' option will cause logstash to run the elasticsearch # server in the same process, so you don't have to worry about # how to download, configure, or run elasticsearch! elasticsearch { embedded => true } }
Here is the command I am running and the errors.
[root@Server1 logstash]# java -jar logstash-1.0.17-monolithic.jar agent -f mylogstash.conf -- web --backend elasticsearch:///?local Exception in thread "main" java.lang.ClassFormatError: logstash.runner (unrecognized class file version) at java.lang.VMClassLoader.defineClass(libgcj.so.7rh) at java.lang.ClassLoader.defineClass(libgcj.so.7rh) at java.security.SecureClassLoader.defineClass(libgcj.so.7rh) at java.net.URLClassLoader.findClass(libgcj.so.7rh) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at gnu.java.lang.MainThread.run(libgcj.so.7rh) [root@Server1 logstash]#