logstash response to logstash-simple.conf

Asked by Julianloui

After I installed java and downloaded logstash-1.1.9-monolithic.jar and a file named logstash-simple.conf from www.logstash.net, I ran the following simple test command recommended by the website and entered some random typing on the screen, but I did not see any logstash response as predicted by logstash's online tutorial, nor any system error messages. In other words, all I saw was a blank screen.

java -jar logstash-1.1.9-monolithic.jar agent -f logstash-simple.conf

By the way, I am a total neophyte to logstash and will appreciate very much hearing from any logstash users.

************************************************************************
2013-02-05 new input: Please read following link for my latest logstash data:

http://imageshack.us/a/img21/5647/logstashout.png
************************************************************************

Julianloui

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu mcollective-plugins Edit question
Assignee:
No assignee Edit question
Solved by:
Julianloui
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

What is the output of:

uname -a; lsb_release -a; java -version

Thanks

Revision history for this message
Julianloui (julianloui) said :
#2

uname -a outputs:
Linux lenovo 3.2.0-23-genric-pae #36-ubuntu SMP
Tue Apr 10 22:19:09 UTC 2012 i6
86 i686 i386 CNU/Linux

lsb_release_a outputs:
command not found

java -version outputs:
vava version "1.6.0_24"
OpenJDK Runtime Environment (IceTea 1.11.5-0ubuntu1~12.04.1)
OpenJD server VM (build 20.0-b12, mixed mode)

Julianloui

Revision history for this message
Julianloui (julianloui) said :
#3

Correction to my above response's typo in 'vava version "1.6.0_24"' line:

Please note that 'vava' should have read 'java'.

The Launchpad's absence of a user capability to make post-posting corrections is a real curse to us all as not everyone is good in
typing or owns a user-friendly computer!

!!! THIS IS A REALLY URGENT ISSUE THAT BROOKS NO DELAY !! !

Julianloui

Revision history for this message
Julianloui (julianloui) said :
#4

Correction to my above response's typo in 'vava version "1.6.0_24"' line:

Please note that 'vava' should have read 'java'.

The Launchpad's absence of a user capability to make post-posting corrections is a real curse to us all as not everyone is good in
typing or owns a user-friendly computer!

!!! THIS IS A REALLY URGENT ISSUE THAT BROOKS NO DELAY !! !

Julianloui

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#5
Revision history for this message
Julianloui (julianloui) said :
#6

Andrew,

Thanks for the above www.webupd8.org link. After installing Oracle Java7 in Ubuntu via PPA per the site's instructions, I was
able to see

java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_11-b21)
Java HotSpot (TM) Server VM (build 23.6-b04, mixed mode)

--------------------------------------------------------------------------------------------------------------------------------

Running the following command still yields the same non-response I reported before:
java -jar logstash-1.1.9-monolithic.jar agent -f logstash-simple.conf

Julianloui

Revision history for this message
Julianloui (julianloui) said :
#7

Today when I ran the following logstash-related java command, I saw a different response after entering some random typing on the screen.

java -jar logstash-1.1..9-monolithic.jar agent -f logstash-simple.conf

123456
"
Error at line 1, column 39: "\r\noutput{ stdout { debug => true debug_format => \"json\" }} \r\n\n"
Exception in thread "Logstash::Runner "org.jruby.exceptions.RaiseExc

Revision history for this message
Julianloui (julianloui) said :
#8

Please ignore my message #7. I am adding new data from the following java-logstash command:

java -jar logstash-1.1.0-monolithic.jar agent -f logstash-simple.conf

http://imageshack.us/a/img21/5647/logstashout.pngpng

Julianloui

Revision history for this message
Julianloui (julianloui) said :
#9

>>> 2013-02-05 report on logstash errors:

* Please ignore my previous error reports. I obtained this one today by running *

java -jar logstash-1.1.9-monolithic.jar agent -f log stash-simple.conf

and subsequently entering 'Hello, World' on the screen.

Error at line 1, column 39: "\r\noutput { stdout { debug => true debug_format => \"json\"}}\r\n\r\n\n"
Excep
tion in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (RuntimeError) Invalid Configuration. Check syntax of config file.
 at RUBY.parse(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/config/grammar.rb:558)
 at RUBY._get_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/config/file.rb:31)
 at RUBY.parse(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/config/file.rb:37)
 at RUBY.parse_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:285)
 at RUBY.run_with_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:387)
 at org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149)
 at RUBY.run_with_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:386)
Excep
tion in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (RuntimeError) Invalid Configuration. Check syntax of config file.
 at RUBY.parse(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/config/grammar.rb:558)
 at RUBY._get_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/config/file.rb:31)
 at RUBY.parse(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/config/file.rb:37)
 at RUBY.parse_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:285)
 at RUBY.run_with_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:387)
 at org.jruby.ext.thread.Mutex.synchronize(org/jruby/ext/thread/Mutex.java:149)
 at RUBY.run_with_config(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:386)
 at RUBY.run(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:335)

Julianloui
Ju
 at RUBY.run(file:/home/russ/logstash-1.1.9-monolithic.jar!/logstash/agent.rb:335)

Revision history for this message
Julianloui (julianloui) said :
#10

The posted problem went away after I re-copied the logstash-simple.conf file from www.logstash.net a few days after I posted my original question. I subsequently was informed by the logstash-users at http://groups.google.com that the older copy of logstash-simple.conf had a hidden bug in it. Obviously the second copy I obtained from the website was bug-free.

When I re-ran the following command, Linux responded correctly as described by the tutorial guide at www.logstash.net.

 java -jar logstash-1.1.0-monolithic.jar agent -f logstash-simple.conf

Julianloui