ankiit / logstash

Automatically exported from code.google.com/p/logstash
0 stars 0 forks source link

websocket blank page #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.start logstash with websocket enabled
2. browse destination:3232 through google chrome as a browser
3. blank page, nothing displays

What is the expected output? What do you see instead?
I should see real time events, but I just get blank page.

What version of the product are you using? On what operating system?
SLES 10SP2

*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
addressable (2.2.2)
amqp (0.7.0.pre)
async_sinatra (0.4.0)
daemons (1.0.10)
em-http-request (0.2.15)
em-websocket (0.2.0)
eventmachine (0.12.10)
eventmachine-tail (0.5.20101204110840)
fastthread (1.0.7)
gem_plugin (0.2.3)
haml (3.0.25)
jls-grok (0.2.3104)
json (1.4.6)
logstash (0.2.20101222161645)
mongrel (1.1.5)
rack (1.2.1, 1.1.0)
rails (2.3.5)
rake (0.8.7)
sinatra (1.1.2)
thin (1.2.7)
tilt (1.2.1)
uuidtools (2.1.1)

Please provide any additional information below.

logstash.yaml:

inputs:
  syslog: 
  - /var/log/messages
  - /var/log/syslog
  - /var/log/*.log
  apache-access:
  - /var/log/apache2/access.log
  apache-error:
  - /var/log/apache2/error.log

outputs:
 - websocket:///

I run logstash as follows:

root@host:~ # logstash -f logstash.yaml 
I, [2011-01-06T15:47:31.272393 #6142]  INFO -- logstash: Registering 
file://host/var/log/messages
I, [2011-01-06T15:47:31.273292 #6142]  INFO -- logstash: Registering 
file://host/var/log/syslog
I, [2011-01-06T15:47:31.274007 #6142]  INFO -- logstash: Registering 
file://host/var/log/*.log
I, [2011-01-06T15:47:31.274718 #6142]  INFO -- logstash: Registering 
file://host/var/log/apache2/access.log
I, [2011-01-06T15:47:31.275589 #6142]  INFO -- logstash: Registering 
file://host/var/log/apache2/error.log
I, [2011-01-06T15:47:31.359762 #6142]  INFO -- logstash: Registering websocket 
on websocket://0.0.0.0:3232/

Browse the destination host on port 3232, though I get a blank page.

Original issue reported on code.google.com by r4ce2z...@gmail.com on 6 Jan 2011 at 2:48

GoogleCodeExporter commented 9 years ago
Ahh. Currently 'logstash-web' provides the actual web interface to view the 
data from the websocket.

The websocket:/// output only provides the websocket stream, not any 
html/javascript to use it. I admit this is a bit confusing and will try to add 
bits to serve the same websocket viewing functionality from both logstash-web 
and from the websocket:/// output.

Original comment by jls.semi...@gmail.com on 6 Jan 2011 at 7:05

GoogleCodeExporter commented 9 years ago
Hi,

Thanks for the tip, I did not notice that logstash-web came with a ws viewer 
under /ws/index.html .

I ran it and I finally got the logs delivered through the websocket stream.

I found just a small issue with it. It seems to work fine for a while and then 
it stops showing any entries in the radiator although logstash keeps sending 
events to the websocket (INFO -- logstash: Sending event to websocket.)

If I log something 5 times in a row, it will no longer show anything afterwards 
and old entries in the radiator don't really fade out. I use Chrome 8 as a web 
browser.

Thanks for your help.

M

Original comment by r4ce2z...@gmail.com on 7 Jan 2011 at 8:28

GoogleCodeExporter commented 9 years ago
Hi,

I would like to let you know that by checking out the latest revision in your 
github repository, the problem goes away.

Cheers,
M

Original comment by r4ce2z...@gmail.com on 7 Jan 2011 at 9:44

GoogleCodeExporter commented 9 years ago
Awesome, thanks for testing the master branch!

I have a bunch of more work to do (testing/quality fixes) before pushing a new 
version, though if you think today's master branch works well enough I am happy 
to cut that as a new gem.

Original comment by jls.semi...@gmail.com on 7 Jan 2011 at 9:50

GoogleCodeExporter commented 9 years ago
Been stable and happy so far, therefore it's a green light from me.

Cheers,
M

Original comment by r4ce2z...@gmail.com on 7 Jan 2011 at 2:09

GoogleCodeExporter commented 9 years ago
Marking fixed.

Original comment by jls.semi...@gmail.com on 9 Feb 2011 at 2:23