Commit graph

3729 commits

Author SHA1 Message Date
Jordan Sissel
cb027f7acc Merge branch 'master' of github.com:logstash/logstash 2011-02-26 21:55:39 -08:00
Jordan Sissel
d650127481 - disable some debug printing 2011-02-26 21:54:15 -08:00
Jordan Sissel
dc65707242 - use logging 2011-02-26 21:54:05 -08:00
Jordan Sissel
1c152bb945 - Better stdout output 2011-02-26 21:53:48 -08:00
Pete Fritchman
22258e192d require string instead of ipaddr (to allow for hosts) 2011-02-26 21:50:48 -08:00
Pete Fritchman
846a7d6d76 Merge remote branch 'origin/master' 2011-02-26 21:41:43 -08:00
Pete Fritchman
899ab7228a - config now takes a name and an options hash (:validate and :required)
- support :ipaddr as validation
2011-02-26 21:40:21 -08:00
Jordan Sissel
4951e155fd Merge branch 'master' of github.com:logstash/logstash 2011-02-26 20:33:21 -08:00
Jordan Sissel
6f1d479676 - filters/date unit tests pass again. LOGSTASH-13 2011-02-26 20:32:07 -08:00
Pete Fritchman
702a96fd28 going to move this functionality to LogStash::Agent 2011-02-26 20:00:18 -08:00
Pete Fritchman
ab69c909cd remove unnecessary require 2011-02-26 19:56:01 -08:00
Pete Fritchman
11c7804848 use @tags when making an event 2011-02-26 19:53:21 -08:00
Pete Fritchman
2a278d9dcf Merge remote branch 'origin/master' 2011-02-26 19:46:18 -08:00
Pete Fritchman
a6a367460e keep @tags working and remove unnecessary def receive 2011-02-26 19:46:07 -08:00
Jordan Sissel
4f577d53c9 Merge branch 'master' of github.com:logstash/logstash 2011-02-26 19:19:58 -08:00
Jordan Sissel
87cd01805c - Use Joda to parse times rather than very bad ruby core date library.
LOGSTASH-34, LOGSTASH-13
2011-02-26 19:18:55 -08:00
Pete Fritchman
cd5fcb5664 fix mixin config_name in the name.nil? case 2011-02-26 18:20:39 -08:00
Jordan Sissel
c124238ad7 - Allow type coercion of named captures from grok.
Syntax: %{FOO:bar:type}
  Type can be 'int' or 'float' - otherwise is assumed string.
  The result is that the value captured is coerced to the requested type
  in the logstash event for later processing.

  Note: this required a change in grok upstream.
  minimum grok version required now: grok 1.20110223.1

  http://code.google.com/p/logstash/issues/detail?id=45
2011-02-24 00:09:13 -08:00
Jordan Sissel
af2e249d7a Merge remote branch 'origin/master'
Conflicts:
	lib/logstash/agent.rb
2011-02-22 00:39:53 -08:00
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
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
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
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