Giter Site home page Giter Site logo

graylog2-web-interface's Introduction

The Graylog Web Interface has moved and become a module in the server repository at https://github.com/Graylog2/graylog2-server

After Graylog 1.3 the projects have been merged. If you are looking for the Graylog 1.3 Web Interface, please choose the "1.3" branch in the Github UI or visit https://github.com/Graylog2/graylog2-web-interface/tree/1.3 for any later version please see the Server repository.

This repository will be kept for reference, but apart from the 1.3 release is no longer active. To file bug reports, please visit https://github.com/Graylog2/graylog2-server/issues and indicate the version and module of Graylog you have found a bug in.

graylog2-web-interface's People

Contributors

agoddard avatar aleksi avatar alexquick avatar benlangfeld avatar bernd avatar bonko avatar chrisdotm avatar clowder avatar dattas avatar dennisoelkers avatar edmundoa avatar jamescarr avatar kesor avatar kroepke avatar lukom avatar nmunson avatar nstielau avatar portertech avatar pstehlik avatar rasputnik avatar realityforge avatar robertkowalski avatar ruxkor avatar s0enke avatar sbellity avatar ssevertson avatar tiff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

graylog2-web-interface's Issues

Favoriting streams not working

Favoriting a stream is not working. I restored everything as far as I could but need your (cipherpunk) experience with the has_and_belongs_to_many stuff.

regex not working on message field

New install of graylog, running a couple of days, now has 130000 messages.

When using the quickfilter or anywhere else that a regex is used typing anything into does not match any messages.

For example:
puppet-agent[12264]: Finished catalog run in 4.76 seconds

is not matched when searching for:
puppet

^puppet

^puppet.*

run

.run.

Am I misunderstanding how regexp's work in graylog/is something not configured correctly or is this a bug?

Filter on API ?

Hi,

Can you send filters through filter?

Ex:

curl http://graylog.host/messages/search/johndoe?api_key=<key>

Thanks,

Gaëtan

Regular expressions in blacklists

Is it possible to use regular expressions in blacklists?

If not: That'd be a nice feature.

If it is: A help text on the page describing it would be good. :-)

Creating an invalid blacklisted regex breaks everything

An invalid regex can be entered into the system, causing many (all?) pages to break. The only solution was to manually remove the blacklisted term from the mysql db. The regex should probably be checked before being added.

Fatal error deleting from the quickfilter

When hitting "Delete all messages hit by this quickfilter" I get this (fatal) error:

Completed in 308ms (View: 241, DB: 2) | 200 OK [http://graylog2/?filters%5Bmessage%5D=is+fresh&filters%5Bfacility%5D=&filters%5Bseverity%5D=&filters%5Bhost%5D=&commit=Quickfilter%21]
ruby: symbol lookup error: /pkg/packages/graylog2-web-interface-0.9.2/vendor/gems/json-1.4.6/ext/json/ext/json/ext/parser.so: undefined symbol: RSTRING_PTR

BSON::InvalidDocument (Document too large: BSON documents are limited to 4MB.)

I have this error on the Streams dashboard web interface...
I guess it should be rescued ?

Started POST "/messages/getnewmessagecount" for x.x.x.x at Mon Jan 24 20:14:23 +0100 2011
Processing by MessagesController#getnewmessagecount as /
Parameters: {"since"=>"1295882332"}
Completed in 2568ms

BSON::InvalidDocument (Document too large: BSON documents are limited to 4MB.):
bson (1.1.1) lib/./lib/bson/bson_c.rb:24:in serialize' bson (1.1.1) lib/./lib/bson/bson_c.rb:24:inserialize'
mongo (1.1.1) lib/./lib/mongo/cursor.rb:387:in construct_query_message' mongo (1.1.1) lib/./lib/mongo/cursor.rb:369:insend_initial_query'
mongo (1.1.1) lib/./lib/mongo/cursor.rb:337:in refresh' mongo (1.1.1) lib/./lib/mongo/cursor.rb:66:innext_document'
mongo (1.1.1) lib/./lib/mongo/db.rb:453:in command' mongo (1.1.1) lib/./lib/mongo/cursor.rb:115:incount'
plucky (0.3.6) lib/plucky/query.rb:92:in count' app/models/message.rb:261:incount_since'
app/controllers/messages_controller.rb:128:in getnewmessagecount' actionpack (3.0.1) lib/action_controller/metal/implicit_render.rb:4:insend_action'
actionpack (3.0.1) lib/action_controller/metal/implicit_render.rb:4:in send_action' actionpack (3.0.1) lib/abstract_controller/base.rb:150:inprocess_action'
actionpack (3.0.1) lib/action_controller/metal/rendering.rb:11:in process_action' actionpack (3.0.1) lib/abstract_controller/callbacks.rb:18:inprocess_action'
activesupport (3.0.1) lib/active_support/callbacks.rb:450:in _run__1235077561__process_action__757642464__callbacks' activesupport (3.0.1) lib/active_support/callbacks.rb:409:insend'
activesupport (3.0.1) lib/active_support/callbacks.rb:409:in _run_process_action_callbacks' activesupport (3.0.1) lib/active_support/callbacks.rb:93:insend'
activesupport (3.0.1) lib/active_support/callbacks.rb:93:in run_callbacks' actionpack (3.0.1) lib/abstract_controller/callbacks.rb:17:inprocess_action'
actionpack (3.0.1) lib/action_controller/metal/instrumentation.rb:30:in process_action' activesupport (3.0.1) lib/active_support/notifications.rb:52:ininstrument'
activesupport (3.0.1) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (3.0.1) lib/active_support/notifications.rb:52:ininstrument'
actionpack (3.0.1) lib/action_controller/metal/instrumentation.rb:29:in process_action' actionpack (3.0.1) lib/action_controller/metal/rescue.rb:17:inprocess_action'
actionpack (3.0.1) lib/abstract_controller/base.rb:119:in process' actionpack (3.0.1) lib/abstract_controller/rendering.rb:40:inprocess'
actionpack (3.0.1) lib/action_controller/metal.rb:133:in dispatch' actionpack (3.0.1) lib/action_controller/metal/rack_delegation.rb:14:indispatch'
actionpack (3.0.1) lib/action_controller/metal.rb:173
actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:62:in call' actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:62:indispatch'
actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:27:in call' rack-mount (0.6.13) lib/rack/mount/route_set.rb:148:incall'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:93:in recognize' rack-mount (0.6.13) lib/rack/mount/code_generation.rb:117:inoptimized_each'
rack-mount (0.6.13) lib/rack/mount/code_generation.rb:92:in recognize' rack-mount (0.6.13) lib/rack/mount/route_set.rb:139:incall'
actionpack (3.0.1) lib/action_dispatch/routing/route_set.rb:492:in call' actionpack (3.0.1) lib/action_dispatch/middleware/best_standards_support.rb:17:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/head.rb:14:in call' rack (1.2.1) lib/rack/methodoverride.rb:24:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/params_parser.rb:21:in call' actionpack (3.0.1) lib/action_dispatch/middleware/flash.rb:182:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/session/abstract_store.rb:149:in call' actionpack (3.0.1) lib/action_dispatch/middleware/cookies.rb:287:incall'
activerecord (3.0.1) lib/active_record/query_cache.rb:32:in call' activerecord (3.0.1) lib/active_record/connection_adapters/abstract/query_cache.rb:28:incache'
activerecord (3.0.1) lib/active_record/query_cache.rb:12:in cache' activerecord (3.0.1) lib/active_record/query_cache.rb:31:incall'
activerecord (3.0.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:355:in call' actionpack (3.0.1) lib/action_dispatch/middleware/callbacks.rb:46:incall'
activesupport (3.0.1) lib/active_support/callbacks.rb:415:in _run_call_callbacks' actionpack (3.0.1) lib/action_dispatch/middleware/callbacks.rb:44:incall'
rack (1.2.1) lib/rack/sendfile.rb:107:in call' actionpack (3.0.1) lib/action_dispatch/middleware/remote_ip.rb:48:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/show_exceptions.rb:46:in call' railties (3.0.1) lib/rails/rack/logger.rb:13:incall'
rack (1.2.1) lib/rack/runtime.rb:17:in call' rack (1.2.1) lib/rack/lock.rb:11:incall'
rack (1.2.1) lib/rack/lock.rb:11:in synchronize' rack (1.2.1) lib/rack/lock.rb:11:incall'
actionpack (3.0.1) lib/action_dispatch/middleware/static.rb:30:in call' railties (3.0.1) lib/rails/application.rb:168:incall'
railties (3.0.1) lib/rails/application.rb:77:in send' railties (3.0.1) lib/rails/application.rb:77:inmethod_missing'
passenger (2.2.15) lib/phusion_passenger/rack/request_handler.rb:92:in process_request' passenger (2.2.15) lib/phusion_passenger/abstract_request_handler.rb:207:inmain_loop'
passenger (2.2.15) lib/phusion_passenger/rack/application_spawner.rb:120:in run' passenger (2.2.15) lib/phusion_passenger/rack/application_spawner.rb:65:inspawn_application'
passenger (2.2.15) lib/phusion_passenger/utils.rb:252:in safe_fork' passenger (2.2.15) lib/phusion_passenger/rack/application_spawner.rb:58:inspawn_application'
passenger (2.2.15) lib/phusion_passenger/rack/application_spawner.rb:41:in spawn_application' passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:150:inspawn_application'
passenger (2.2.15) lib/phusion_passenger/spawn_manager.rb:278:in handle_spawn_application' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:insend'
passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:352:in main_loop' passenger (2.2.15) lib/phusion_passenger/abstract_server.rb:196:instart_synchronously'
passenger (2.2.15) bin/passenger-spawn-server:61

Bookmark log entries

Enable bookmarking log entries. That way you could pin a log message, go home and leave servers running, come back, navigate to pinned log message and view all log entries that occured thereafter.

Highlight on selected log

When we selected a log, the selected log on list could be marked with a highlight.

This will help the user to identify the selected item.

periodic error (invalid byte sequence in UTF-8) in graylog2-web-interface when logging through gelf gem from a rails application

I've been testing out graylog2-server and graylog2-web-interface (both version 0.10.0) for the past week or so. And it seems very nice.

Everything logged from our hosts by syslog works perfectly, but we are seing a very weird periodic error in the web interface, when one of our rails applications is logging to the graylog2-server using the gelf gem, setup by:

config.lograge.enabled = true
config.lograge.log_format = :graylog2
config.logger = GELF::Logger.new("graylog2.somehostname.org", 12201, "WAN", { :host => "toshokan_dev", :facility => "toshokan" })

When the applications logs, and the data hits the frontpage of the webapplication a reload of this page sometimes breaks with this in the logs:

ActionView::Template::Error (invalid byte sequence in UTF-8):
54: <%= message.additional_fields[col].blank? ? "-" : message.additional_fields[col] %>
55: <% end %>
56:
57: <%= message.message[0..message_length] %>
58: <%=raw (message.message.length > message_length) && !defined?(dont_show_links) ? "..." : nil %>
59:
60:

And sometimes a force reload in the browser fixes it, and sometime it doesn't.

When the data scrolls out of the frontpage, everything is fine there again, but a search for the application log will periodicly fail, in the same way.

I tried the slice fix from #113 manually, but it doesn't seem to fix the issue. I've even tried to alter:

message.message[0..message_length]

to:

message.message

And the web application still fails periodicly, when showing logs from the rails application.

The server and web application is installed on a Debian 7.0 Wheezy server, with the following debian packages:

mongodb-10gen (latest from 10gen repository)
openjdk-7-jre-headless
elasticsearch-0.20.5.deb (latest elasticsearch from elasticsearch.org
bundler
rubygems
rubygems-integration
apache2
apache2-mpm-prefork
libapache2-mod-passenger
ruby1.9.1 (is really a ruby 1.9.3.194-8 - debian naming is because om API name I think?)

and then the rest of the web application basicly setup as described in your documentation for Debian 6.

We see the same issue when starting a test server on port 3000 with:

rails server -e production

within the web application directory, so it's not the passenger+apache2 setup that messes with us.

Is this a bug, or do you have any idea what might be done wrong in my setup?

Best regards,
Lasse Aagren.

PS: Let me know if you need more information about the setup.

Filter only return new logs

On Messages, I choose 7 days and enter nothing into filter bar. Then I issue "enter".
At the bottom of the page, I see
" I searched in the following indices: graylog2_recent "
and results I got is only new logs (some few hours), not all logs in last 7 days.

Same problem for Stream and Stream > Analytics

When I choose 1 month, GL2 web said:
" I searched in the following indices: graylog2-graylog2-es.novalocal_0 "
then it return proper number of logs.

Graylog2 server is reported as not running, but it's not true

Inside of the web interface I see the following warning message:

Warning! It seems like your Graylog2 server is not running.

This is not true, since graylog2 server is running (according to ps).

I'm using:

  • graylog2-web-interface-0.9.5.tar.gz
  • graylog2-server-0.9.5p1.tar.gz

Deleting streams is broken

NameError (uninitialized constant Stream::SubscribedStream):
  app/controllers/streams_controller.rb:150:in `destroy'

Nagios hook - returning an error on version 0.11

[root@graylog graylog2-web-interface]# rake nagios:check minutes=10 messages=100
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /opt/graylog2-web-interface-0.11.0/Rakefile:5)
rake aborted!
undefined method values' for nil:NilClass /usr/local/rvm/gems/ruby-1.9.2-p320/gems/mongoid-2.4.5/lib/mongoid/railtie.rb:83:inblock in class:Railtie'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/initializable.rb:30:in instance_exec' /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/initializable.rb:30:inrun'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/initializable.rb:55:in block in run_initializers' /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/initializable.rb:54:ineach'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/initializable.rb:54:in run_initializers' /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/application.rb:136:ininitialize!'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/railtie/configurable.rb:30:in method_missing' /opt/graylog2-web-interface-0.11.0/config/environment.rb:6:in<top (required)>'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:in require' /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inblock in require'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:236:in load_dependency' /usr/local/rvm/gems/ruby-1.9.2-p320/gems/activesupport-3.2.12/lib/active_support/dependencies.rb:251:inrequire'
/usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/application.rb:103:in require_environment!' /usr/local/rvm/gems/ruby-1.9.2-p320/gems/railties-3.2.12/lib/rails/application.rb:297:inblock (2 levels) in initialize_tasks'
/usr/local/rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in eval' /usr/local/rvm/gems/ruby-1.9.2-p320/bin/ruby_noexec_wrapper:14:in

'
Tasks: TOP => nagios:check => environment
(See full trace by running task with --trace)

Secret token is visible

config/initializers/secret_token.rb contains a hardcoded secret token. This can be used to forge cookie signatures and bypass authentication. All default Graylog2 web interface installs are vulnerable to attack as a result.

This should probably raise an exception telling you to replace it with your own secret token.

Better navigation for streams

Clicking on the full-Link while viewing a stream takes you to the full log message. There's no way to get back to stream you where previously viewing.

Can't save a Facility as a string in Web UI

According to the documentation for GELF a facility property could be a number or string (great), but in the web-ui it's not possible to select a facility that has string value in the rule selection box or add a string value for a facility in Settings/Manage facilities

graylog2-web-interface crashes graylog2-server when using streams

INFO : org.graylog2.Main - [x] Graylog2 starting up. (JRE: Sun Microsystems Inc. 1.6.0_20 on Linux 2.6.32-32-generic)
INFO : org.graylog2.Main - [x] Reading config.
INFO : org.graylog2.Main - [x] Using config: /etc/graylog2.conf
INFO : org.graylog2.Main - [x] Not using rules
INFO : org.graylog2.Main - [x] Syslog server thread is up.
INFO : org.graylog2.Main - [x] GELF threads are up.
INFO : org.graylog2.Main - [x] Host count cache is up.
INFO : org.graylog2.Main - [x] Graylog2 up and running.
INFO : org.graylog2.messagehandlers.syslog.SyslogEventHandler - Received syslog message: CRON[27237]: pam_unix(cron:session): session opened for user root by (uid=0)
INFO : org.graylog2.messagehandlers.syslog.SyslogEventHandler - Host: jabber01
INFO : org.graylog2.messagehandlers.syslog.SyslogEventHandler - Facility: 10 (security/authorization)
INFO : org.graylog2.messagehandlers.syslog.SyslogEventHandler - Level: 6 (Informational)
INFO : org.graylog2.messagehandlers.syslog.SyslogEventHandler - Raw: <86>Jun 12 22:55:01 jabber01 CRON[27237]: pam_unix(cron:session): session opened for user root by (uid=0)
WARN : org.graylog2.streams.Router - Invalid stream rule type. Skipping matching for this rule. null
org.graylog2.streams.InvalidStreamRuleTypeException
at org.graylog2.streams.StreamRuleMatcherFactory.build(StreamRuleMatcherFactory.java:55)
at org.graylog2.streams.Router.route(Router.java:58)
at org.graylog2.messagehandlers.gelf.GELFMessage.getStreams(GELFMessage.java:283)
at org.graylog2.messagehandlers.gelf.GELFMessage.getStreamIds(GELFMessage.java:289)
at org.graylog2.database.MongoBridge.insertGelfMessage(MongoBridge.java:90)
at org.graylog2.messagehandlers.gelf.SimpleGELFClientHandler.handle(SimpleGELFClientHandler.java:130)
at org.graylog2.messagehandlers.syslog.SyslogEventHandler.event(SyslogEventHandler.java:80)
at org.productivity.java.syslog4j.server.impl.AbstractSyslogServer.handleEvent(AbstractSyslogServer.java:301)
at org.productivity.java.syslog4j.server.impl.AbstractSyslogServer.handleEvent(AbstractSyslogServer.java:271)
at org.productivity.java.syslog4j.server.impl.net.udp.UDPNetSyslogServer.run(UDPNetSyslogServer.java:86)
at java.lang.Thread.run(Thread.java:636)
WARN : org.graylog2.streams.Router - Invalid stream rule type. Skipping matching for this rule. null
org.graylog2.streams.InvalidStreamRuleTypeException
at org.graylog2.streams.StreamRuleMatcherFactory.build(StreamRuleMatcherFactory.java:55)
at org.graylog2.streams.Router.route(Router.java:58)
at org.graylog2.messagehandlers.gelf.GELFMessage.getStreams(GELFMessage.java:283)
at org.graylog2.messagehandlers.gelf.GELFMessage.getStreamIds(GELFMessage.java:289)
at org.graylog2.database.MongoBridge.insertGelfMessage(MongoBridge.java:90)
at org.graylog2.SelfLogAppender.doAppend(SelfLogAppender.java:54)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.warn(Category.java:1060)
at org.graylog2.streams.Router.route(Router.java:64)
at org.graylog2.messagehandlers.gelf.GELFMessage.getStreams(GELFMessage.java:283)
at org.graylog2.messagehandlers.gelf.GELFMessage.getStreamIds(GELFMessage.java:289)
at org.graylog2.database.MongoBridge.insertGelfMessage(MongoBridge.java:90)
at org.graylog2.messagehandlers.gelf.SimpleGELFClientHandler.handle(SimpleGELFClientHandler.java:130)
at org.graylog2.messagehandlers.syslog.SyslogEventHandler.event(SyslogEventHandler.java:80)
at org.productivity.java.syslog4j.server.impl.AbstractSyslogServer.handleEvent(AbstractSyslogServer.java:301)
at org.productivity.java.syslog4j.server.impl.AbstractSyslogServer.handleEvent(AbstractSyslogServer.java:271)
at org.productivity.java.syslog4j.server.impl.net.udp.UDPNetSyslogServer.run(UDPNetSyslogServer.java:86)
at java.lang.Thread.run(Thread.java:636)

(This goes on in a loop)

Menu links and highlighting

The links in the top menu are no longer really clickable links if it is the current page.

Also, and more important: The link is only highlighted as active when it exactly matches. The item "Streams" is no longer active when I am leave the index action for the show action.

Regression in 853253a

Bytewise string slicing is not UTF-8 safe

In a number place places, strings fragments are accessed like string[0..length]. This is a bytewise operation rather than a character-wise operation, and should be string.slice(0, length) for Ruby 1.9, or string.mb_chars[0..length] for Ruby 1.8 (with ActiveSupport).

This is currently an issue in app/views/messages/_table.html.erb where it may cause the messages index view to throw exceptions if it manages to split a string in the middle of a multibyte character.

Deleting messages from Quickfilter does not work

You get the following exception in the Rails3 branch after clicking the "Delete all messages hit by this quickfilter" button:

undefined method `sources' for {:message=>/broken/, :deleted=>{"$in"=>[false, nil]}}:Hash

It's from this line in the MessagesController:

conditions = Message.all_by_quickfilter(filters_with_symbols, 0, 0).criteria.sources

(Introduced in fcf1cd9)

Installing v 0.10.0 showing org.xerial.snapy.Snappy class not found error.

Hi,

I followed your instruction in installing graylog2, graylog2-web and elasticsearch using apt-get. The installation works with one exception being thrown - which is org.xerial.snapy.Snappy in snappy-java.jar not found. I tried to download the jar and put it in the jvm class path but it does't seem to pick it up. Is there a way to add that to the classpath that starts up graylog2-server? Sorry for the newbie question. Thank you for your help.

Migration for users with no role

undefined method `to_sym' for nil:NilClass

activesupport (3.0.1) lib/active_support/whiny_nil.rb:48:in `method_missing'
app/models/user.rb:56:in `role_symbols'

Users Controller security issue..?

There is a condition (User.count) in the users controller which decides whether to add authorization to users#first and users#create.

However, since this code is evalled only once, if the app is never restarted after creating the first user, then anyone will be able to go in and create a user.

Furthermore, the routes file is missing this code

-  resources :settings, :users, :dashboard
+  resources :settings, :dashboard
+  resources :users do
+    collection do
+      get :first
+    end
+  end

In combination, it doesn't allow you to create that first user (at all!) due to Rails 3 no longer falling back to controller/action. But there should be a different way of doing this code.

Multiple instances of web-interface invalidate logins

If I'm running multiple instances of the Graylog2 web interface and log in to one, my logins in the others are invalidated.

I run a local graylog2 instance and one per environment for the service I'm working on ... so this is pretty inconvenient.

rake migrate error

domU-12-31-39-00-EC-77:/opt/graylog2-web/current/config# rake db:migrate --trace
(in /opt/graylog2-web/graylog2-web-interface-0.9.4p2)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
rake aborted!
undefined method reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.1/lib/active_record/railties/databases.rake:329 /usr/lib/ruby/1.8/rake.rb:546:incall'
/usr/lib/ruby/1.8/rake.rb:546:in execute' /usr/lib/ruby/1.8/rake.rb:541:ineach'
/usr/lib/ruby/1.8/rake.rb:541:in execute' /usr/lib/ruby/1.8/rake.rb:508:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in synchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in invoke' /usr/lib/ruby/gems/1.8/gems/activerecord-3.0.1/lib/active_record/railties/databases.rake:143 /usr/lib/ruby/1.8/rake.rb:546:incall'
/usr/lib/ruby/1.8/rake.rb:546:in execute' /usr/lib/ruby/1.8/rake.rb:541:ineach'
/usr/lib/ruby/1.8/rake.rb:541:in execute' /usr/lib/ruby/1.8/rake.rb:508:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:501:in synchronize' /usr/lib/ruby/1.8/rake.rb:501:ininvoke_with_call_chain'
/usr/lib/ruby/1.8/rake.rb:494:in invoke' /usr/lib/ruby/1.8/rake.rb:1931:ininvoke_task'
/usr/lib/ruby/1.8/rake.rb:1909:in top_level' /usr/lib/ruby/1.8/rake.rb:1909:ineach'
/usr/lib/ruby/1.8/rake.rb:1909:in top_level' /usr/lib/ruby/1.8/rake.rb:1948:instandard_exception_handling'
/usr/lib/ruby/1.8/rake.rb:1903:in top_level' /usr/lib/ruby/1.8/rake.rb:1881:inrun'
/usr/lib/ruby/1.8/rake.rb:1948:in standard_exception_handling' /usr/lib/ruby/1.8/rake.rb:1878:inrun'
/usr/bin/rake:28

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.