So, I thought 'd give LS a try having heard so much about it.
I installed openjdk-7-jre onto a 12.04 ubuntu server then logatash 2.2.1 from the repositories (and then by hand when that didn't run). No errors are reported during install and
# java -version
returns
root@dns1:/# java -version
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)`
with no warnings or errors. Given that LS is supposed to be great for newbies and I've wasted two hours investigatingthis with different variants of Java I'm a bit fed up...
This is expected. Logstash is waiting to receive something on stdin. When you've started it, just type something into the terminal and press Enter. From where did you get the idea that you should run this command? If it's from the official documentation, perhaps there's room for improvement to correctly set users' expectations.
Hmmm I obviously haven't explained adequately - sorry....
Logstash isn't reading anything from stdin. If I type at it and send EOF nothing is processed at all. I've tried using echo to pipe data into it (to eliminate any tty driver issues) but that makes no difference. I was expecting the output as indicated in the Getting Started pages.
logstash --help
does nothing (no output)
Actually, running
logstash _anything_
to attempt to generate errors does nothing. Something is definitely wrong...
BTW, I've just reread my first post and the tone is a bit harsh - sorry, but it was 2am locally when I wrote it and was tired. No excuse but it still doesn't work...
Soryr, I'm drawing a blank here. There are a lot of small reads of rt.jar but I'm sure if that's normal and, if not, why could be the cause of it. I'd try with a different JVM.
I've just spent a couple of hours uninstalling java (there were several variants installed) to a clean system and then installed Oracle's Java 7. I see exactly the same symptom.
Although I like the idea behind LS it's just not stable enough for my needs - on Ubuntu 12.04 at least.
Could you describe your environment a little more? Can you run 12.04.5?
This sounds like an issue with jruby firing. I googled around a bit for
jruby hanging on Ubuntu and it seems like if there are entropy issues it
can lead to jruby hanging with no obvious reason.
This is a VPS, running under OpenVZ so the filesystem is a proxy-filesystem known as simfs . SE-Linux will likely be running on the host, but it's not available to me.
In case it's relevant, the kernel is
root@me1:/opt/logstash# uname -a
Linux me1 2.6.32-042stab102.9 #1 SMP Fri Dec 19 20:34:40 MSK 2014 x86_64 x86_64 x86_64 GNU/Linux
Evidently, the environment is beyond my control.
I just installed from logstash_2.2.2-1_all.deb (I was previously installing from logstash_2.2.1-1_all.deb
Yeah I'm going to stick with entropy issues. The last real calls are to
open /dev/random and /dev/urandom and then logs just repeat themselves.
check this article out:
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.