ankiit / logstash

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

Cant us [ or ] in a query #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run logstash-web
2. Go to the URL 
3. type [foo in the "query" and hit submit

What is the expected output? What do you see instead?
everything with [foo, instead the server crashes with:

/var/lib/gems/1.8/gems/logstash-0.1.523/lib/logstash/web/lib/elasticsearch.rb:50
:in `search': undefined method `[]' for nil:NilClass (NoMethodError)
        from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `call'
        from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `set_deferred_status'
        from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/em/deferrable.rb:173:in `succeed'
        from /var/lib/gems/1.8/gems/em-http-request-0.2.14/lib/em-http/client.rb:499:in `unbind'
        from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:1417:in `event_callback'
        from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
        from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
        from /var/lib/gems/1.8/gems/thin-1.2.7/lib/thin/backends/base.rb:57:in `start'
        from /var/lib/gems/1.8/gems/thin-1.2.7/lib/thin/server.rb:156:in `start'
        from /var/lib/gems/1.8/gems/rack-1.2.1/lib/rack/handler/thin.rb:14:in `run'
        from /var/lib/gems/1.8/gems/logstash-0.1.523/lib/logstash/web/server.rb:86
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /var/lib/gems/1.8/gems/logstash-0.1.523/bin/logstash-web:6
        from /var/lib/gems/1.8/bin/logstash-web:19:in `load'
        from /var/lib/gems/1.8/bin/logstash-web:19

What version of the product are you using? On what operating system?
logstash-0.1.532 (installed from gem)

Please provide any additional information below.
No grok installed, no filters, just using the basic tutorial from the site. 

Original issue reported on code.google.com by koper...@gmail.com on 17 Nov 2010 at 8:57

GoogleCodeExporter commented 9 years ago
Cool. Looks like a bug in how I handle errors from elasticsearch.

Original comment by jls.semi...@gmail.com on 17 Nov 2010 at 9:04

GoogleCodeExporter commented 9 years ago
Search errors are caught and forwarded to the web ui now (has been for a few 
weeks, I think)

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