Commit graph

3729 commits

Author SHA1 Message Date
Jordan Sissel
b4ff4ce64e - split Agent#run into #run and #run_with_config for easier testing.
- yield in run_with_config if we get a block (this is necessary for
  testing so we can determine when the agent is done setting up
  inputs/outputs/etc)
- Allow LogStash::Config::File.new to take a string that is the value
  for the config text. Used for testing.
- Fix outputs/internal to work with the new jruby/thread model
- fix the file input tests in jrubyland

Test status for inputs/test_file.rb
  Finished in 2.3 seconds.
  1 tests, 32 assertions, 0 failures, 0 errors
2011-03-27 20:58:19 -07:00
Jordan Sissel
734bc3f5d8 - fix bugs exposed by the inputs/file tests 2011-03-27 20:57:00 -07:00
Pete Fritchman
de568d2b46 fix mongodb output 2011-03-27 20:50:52 -07:00
Pete Fritchman
0e34d43a66 update beanstalk input/output 2011-03-27 20:00:55 -07:00
Pete Fritchman
1f86bdcd70 Merge remote branch 'origin/master' 2011-03-27 17:48:55 -07:00
Pete Fritchman
3cc1c1c815 update syslog input 2011-03-27 17:48:51 -07:00
Jordan Sissel
1b906e8fa2 - Add spoon gem for tests
- Update some Gemfile deps/versions
- Make LogStash::Search::ElasticSearch#search support sync and async
  Also finish converting it to use jruby-elasticsearch
- Make outputs/test_elasticsearch.rb pass! Whew!

Full test suite result:
  Finished in 38.082 seconds.
  25 tests, 112 assertions, 0 failures, 0 errors
2011-03-27 01:23:31 -07:00
Jordan Sissel
8f478c56a4 more in-progress work on elasticsearch testing 2011-03-26 23:46:22 -07:00
Jordan Sissel
5f4f5bfef3 - Add cluster name support to outputs/elasticsearch
- converted search/elasticsearch to use jruby-elasticsearch internally
  (was em-http-request)
- Started working on jruby-ifying the outputs/elasticsearch test. Slow
  goings...
- Added gem 'spoon' (implements posix_spawn) since jruby doesn't have
  fork.
2011-03-26 01:40:16 -07:00
Jordan Sissel
d2f0d5739e - moved thread name setting into it's own lib/method 2011-03-23 18:14:15 -07:00
Jordan Sissel
7764b276c0 - move logging around 2011-03-23 18:14:04 -07:00
Jordan Sissel
8856f52d78 - fix log output target 2011-03-23 16:35:11 -07:00
Jordan Sissel
c9ff4f5a39 - Allow loading grok patterns from the jar (Requires bug fix in
jls-grok >= 0.4.6)
2011-03-23 16:30:50 -07:00
Jordan Sissel
1a3a2550ed - more packaging work 2011-03-22 19:15:11 -07:00
Jordan Sissel
6e9e0cc4a3 - more work on packaging. 2011-03-21 23:49:27 -07:00
Jordan Sissel
adc4bd034b - compile again 2011-03-21 23:49:14 -07:00
Jordan Sissel
f65c034b72 - Make it runnable 2011-03-21 22:58:08 -07:00
Jordan Sissel
e96b952a70 - Add vendor/bundle support for monolithic releases later. 2011-03-21 18:53:26 -07:00
Jordan Sissel
52e65939cb - s/settings.logfile/@logfile/ 2011-03-21 09:42:38 -07:00
Jordan Sissel
71903bdc22 - Components can now add global flags 2011-03-20 23:08:19 -07:00
Jordan Sissel
c2ea10ed5d - delay require until the register method 2011-03-20 23:06:24 -07:00
Jordan Sissel
7b5b3b3124 - More work on plugin flag support 2011-03-20 17:28:14 -07:00
Jordan Sissel
b73f393511 - change agent thread name from 'agent' to 'LogStash::Agent' 2011-03-19 00:34:25 -07:00
Jordan Sissel
099ae109d9 - Convert file manager to use 'filewatch' rubygem 2011-03-19 00:25:52 -07:00
Jordan Sissel
5e516875a6 - JRuby (and 1.9?) 'rescue => e' doesn't catch LoadError; be explicit. 2011-03-19 00:25:21 -07:00
Jordan Sissel
90b72b4c5a - Move agent flags and settings management into logstash/agent.rb 2011-03-19 00:24:56 -07:00
Jordan Sissel
4ef70dbffe syntax fix 2011-03-18 22:42:21 -07:00
Jordan Sissel
56c36d2cab style fix 2011-03-18 22:42:12 -07:00
Jordan Sissel
f7c76431c9 - start working on date support for Event#sprintf 2011-03-18 22:41:47 -07:00
Jordan Sissel
c9edd1380a - Start working on flag support
- fix typo
- some rdoc/comment improvements
2011-03-18 22:41:24 -07:00
Jordan Sissel
bcb4e75ef5 - minor cleanup 2011-03-17 15:25:13 -07:00
Jordan Sissel
cc7137d62e - Fix some date testing that broke after DST switch
- disable some tests until they get converted to be jruby-friendly
2011-03-17 01:18:48 -07:00
Jordan Sissel
1e26145a44 Merge branch 'master' of github.com:logstash/logstash 2011-03-01 17:31:17 -08:00
Jordan Sissel
d91201d19f Don't need ruby_fixes anymore 2011-03-01 17:30:01 -08:00
Pete Fritchman
3c74efd004 mark required config attributes 2011-02-28 04:41:50 -08:00
Jordan Sissel
d159e408b0 - use 'direct' for exchange type, not 'queue' 2011-02-27 23:23:51 -08:00
Jordan Sissel
7415a9c445 - JRuby makes us not need any ruby monkeypatches. LOGSTASH-30 2011-02-27 03:38:13 -08:00
Jordan Sissel
f7438b3f80 remove old code 2011-02-27 03:05:01 -08:00
Jordan Sissel
afe42d5276 debuglevel change 2011-02-27 03:04:51 -08:00
Jordan Sissel
b1b6c75ee6 - less logging 2011-02-27 03:02:34 -08:00
Jordan Sissel
c37e06454c - require jruby-elasticsearch 2011-02-27 03:02:16 -08:00
Jordan Sissel
624b02e7b2 - Trim debug output
- Add speed test for date parsing
- Remove timezone 'missing' format check since we don't need it anymore.
2011-02-27 02:26:01 -08:00
Jordan Sissel
9b7fbf12fb - use debug level 2011-02-27 02:17:25 -08:00
Jordan Sissel
1e4f70522b - Start working on outputs/elasticsearch jruby transition. Now uses gem
'jruby-elasticsearch' which is uses the native java ES API.
2011-02-27 02:01:41 -08:00
Jordan Sissel
3e5441a54b - Fall back sanely if we don't have awesome_print 2011-02-27 02:01:21 -08:00
Jordan Sissel
4f6e8f5cf7 - require jls-grok >=0.4.3
- Add basic tests for grok filter
2011-02-27 00:58:25 -08:00
Jordan Sissel
2f81eb1d1d - Fixup the multiline tests with after th enew config and jruby moves.
LOGSTASH-17
2011-02-26 23:22:06 -08:00
Jordan Sissel
ced0b8f442 - fix inspection of value when reporting validation failure of boolean 2011-02-26 23:21:20 -08:00
Jordan Sissel
5399ea9770 - Sort config names so regexps end up handled last. This ensures literal
values (config :foo) are processed before pattern ones (config /.*/)
2011-02-26 22:30:01 -08:00
Jordan Sissel
5c5433b9e5 - Update grep to use the new config format and be happy in jruby.
(LOGSTASH-15)
2011-02-26 22:29:21 -08:00