Commit graph

1001 commits

Author SHA1 Message Date
Jordan Sissel
08d2028a98 - Switch to using SizedQueues for internal messaging
http://code.google.com/p/logstash/issues/detail?id=44
2011-02-21 21:14:40 -08:00
Pete Fritchman
52179666fa cleanup and more sample configs 2011-02-21 20:23:14 -08:00
Pete Fritchman
ae5426584f Merge remote branch 'origin/master' 2011-02-21 20:21:31 -08:00
Pete Fritchman
4b390e82a7 better MultiQueue namespace, fix output queues, handle output exceptions 2011-02-21 19:53:36 -08:00
Jordan Sissel
cef63977e3 - inputs/amqp works now with the new threaded/jruby model 2011-02-21 19:16:55 -08:00
Jordan Sissel
73957700dc - try direct exchange 2011-02-21 19:12:50 -08:00
Jordan Sissel
88836d00bb - style/todo 2011-02-21 19:12:40 -08:00
Jordan Sissel
08abcbea9d - style cleanup
- Add MultiQueue#<< alias to #push
2011-02-21 19:12:23 -08:00
Jordan Sissel
85db3348df - Update amqp and stdin inputs for jrubyland 2011-02-21 19:09:36 -08:00
Jordan Sissel
bb110ff82f - Reusing variable names is no longer safe in the threaded world.
This was causing the 'queue' to not be set correctly for input sources
  to write to
2011-02-21 19:08:22 -08:00
Pete Fritchman
fdfeec6f73 update amqp output 2011-02-21 14:20:43 -08:00
Pete Fritchman
0039975231 debug log each event we generate 2011-02-21 14:19:27 -08:00
Pete Fritchman
b07c174856 debug cleanup 2011-02-21 14:18:35 -08:00
Pete Fritchman
270c7e4a1d Merge remote branch 'origin/master' 2011-02-21 10:41:39 -08:00
Pete Fritchman
6d75615697 update tcp input 2011-02-21 10:40:52 -08:00
Pete Fritchman
7706953586 fix config :number validation 2011-02-21 09:04:10 -08:00
Pete Fritchman
42394069a9 always set logger and call .register 2011-02-21 08:59:18 -08:00
Jordan Sissel
76e388181b - Remove debugging output 2011-02-21 01:11:35 -08:00
Jordan Sissel
847590615b - Add :hash coercion for config; used for add_field, like so:
config :add_field => :hash

  and in the config file:

    foo {
      add_field => ["key1", "value1", "key2", "value2"]
      add_field => ["key3", "value3"]
    }
2011-02-21 01:10:06 -08:00
Jordan Sissel
073523a7d4 - use a format example 2011-02-21 01:09:38 -08:00
Jordan Sissel
003a680d78 - Oops, already implemented sprintf. Move the new format to sprintf.
- Fix unit tests to support new %{} syntax (was ${})
2011-02-20 23:53:37 -08:00
Jordan Sissel
6a3053caaa Merge branch 'master' of github.com:logstash/logstash 2011-02-20 23:48:15 -08:00
Jordan Sissel
c55537b4e4 - Add LogStash::Event#format(str) for sprintf-like functionality for an
event.
- Updated #to_s to use the new format method.
2011-02-20 23:46:13 -08:00
Pete Fritchman
3e5c62074c support add_tag and add_field in filters/base 2011-02-20 23:26:34 -08:00
Pete Fritchman
1c7dcd4d81 bump gem version 2011-02-20 21:34:51 -08:00
Pete Fritchman
67202f4908 Merge branch 'master' into experimental/petef-jruby 2011-02-20 21:29:08 -08:00
Jordan Sissel
60c7590fed - Make ignore a little better on test/setup 2011-02-20 21:28:50 -08:00
Pete Fritchman
19f8cecc1f don't need to .flatten anymore 2011-02-20 21:20:00 -08:00
Pete Fritchman
f65d21bf38 * logstash -v sets debug loglevel, better passing of logger
* fix grok filters to keep one set of @@grokpiles per event type
* use a LogStash::File::Manager for watching globs and missing files
2011-02-20 20:57:45 -08:00
Pete Fritchman
f0fb7d5001 fix :boolean config types 2011-02-20 20:46:09 -08:00
Pete Fritchman
0290314775 deal with empty parameter lists properly 2011-02-20 20:27:17 -08:00
Pete Fritchman
f7f574340a Merge remote branch 'origin/issue/17' into experimental/petef-jruby
Conflicts:
	lib/logstash/inputs/file.rb
2011-02-20 13:36:41 -08:00
Jordan Sissel
8dbcbef97a - make config accessible externally. 2011-02-20 03:55:48 -08:00
Jordan Sissel
071a0e0242 - fix grammar build
- Add Config mixin instance method 'config_init' which performs
  validation and sets instance variable values.

    If you define a config value like this:
      config :pants => :boolean

    You can expect to do this in the config file:
      pants => true

    And have this in your class:
      @pants # == true or false
2011-02-20 03:48:17 -08:00
Jordan Sissel
b3eae2b9a3 - ensure we have the latest grammar before building packages. 2011-02-20 03:30:13 -08:00
Jordan Sissel
99b182645b - the 'lgtm' config now passes validation.
- Added enum support to the config, like this:
  config :mykey => ["value1", "value2", ...]
- Added simple value validation (:string, :number, :boolean)
- Added value coersion so :number would actually set a proper value of
  type number in the parameter hash.
2011-02-20 03:26:33 -08:00
Jordan Sissel
9b09652bdd - Dynamically load plugins based on data from the config file.
- Add prototype of validation to the config dsl
2011-02-20 02:45:30 -08:00
Jordan Sissel
2a56742cbb - += if an array, otherwise << shift in 2011-02-20 02:41:23 -08:00
Jordan Sissel
33d6619c5e - Config parsing works again; bug was causing '\' in a string to
terminate parsing of the config file. Oops! Was using 'return' from a
  code block.
- Update all the plugins to specify 'config_name'
- Start working more on agent integration
2011-02-20 01:37:50 -08:00
Jordan Sissel
affed158a0 - add missing files 2011-02-19 20:50:48 -08:00
Pete Fritchman
49e41e6712 fix merge-o 2011-02-19 19:28:06 -08:00
Pete Fritchman
ea0a978281 Merge remote branch 'origin/issue/17' into experimental/petef-jruby 2011-02-19 19:13:26 -08:00
Jordan Sissel
a3ebbec089 - More work towards a config file format. 2011-02-19 19:12:55 -08:00
Jordan Sissel
93ec55f20f - update for new config dsl 2011-02-19 19:12:40 -08:00
Pete Fritchman
f79e10be98 minor cleanup 2011-02-19 19:12:29 -08:00
Pete Fritchman
2c24c35dfd merge issue/17 branch 2011-02-19 19:08:15 -08:00
Pete Fritchman
5159f091a3 String#bytesize fix for ruby < 1.8.7 using amqp 2011-02-19 19:03:14 -08:00
Jordan Sissel
96eb87d56f Merge branch 'master' into issue/17 2011-02-19 17:54:51 -08:00
Jordan Sissel
35a789a9f3 - Make ignore a little better on test/setup 2011-02-19 13:50:56 -08:00
Jordan Sissel
2421d66d39 - don't require anymore; config will autorequire 2011-02-19 13:50:00 -08:00