Tests included.
Note about grammar compilation:
I had to use treetop 1.4.15 (1.5.3 generates ruby code that fails to
parse, haven't spent any time debugging)
Fixes#1513
ES version 1.0 or greater is now supported by all protocols.
The Elasticsearch eng team has tests to ensure client nodes from all ES versions >=1.0 work with all ES clusters version >=1.0
Fix break_on_match issue while evaluating multiple patterns
Closes#1547
Make better exception message
Add more specs for inputs with arrays
Closes#1547
deprecated USE_JRUBY environment var
added USE_RUBY and USE_DRIP environment vars
centralized gem path handling in LogStash::Environment
use consistent discovery strategy
Now, if you try to use `plain` or `json` codecs with either `stdin` or
`tcp` inputs, it will automatically select `line` or `json_lines` codec
respectively.
Right now, many users try to use json codec with tcp input. This
*should* work, but due to technical limitations[1], it does not.
To compensate, we have always provided a json_lines codec to help
parse "streams of line-delimited json" which is what most folks
seem to be handling these days.
[1] I haven't found a JSON library capable of processing a byte stream.
Jackson has one, but it requires an input stream model which logstash
does not currently expose. Future work will make this possible.
Related: #1391
* Add spec tests for NaN support
* Catch warning on NaN with nan_handling set to warn
* Make lambdas ivars and initialize so they can reference other ivars
* Fixed reference to point to ivar
* Streamline ivar declarations in one method
* Improve tests to cover more cases
* Make lambdas not be ivars
* Change idiomatic calling of init_lambdas to reflect lack of return value
closes 1363
* master:
Fix typo I somehow forgot to commit in the last PR
Refacter known file lookups to a single method in LogStash::Environment
Purge jar-specific handling that is not needed anymore.
This removes all monkeypatches for JRUBY-6970, woohoo!
I also tried to find any references to jar, jar:, or file: and
remove the special handling there.
`make test` says it's cool, so I'm happy enough.
Finished in 19.7 seconds
502 examples, 0 failures
* Hash + Closures. Now replacing case/when statements with closures and hashes to improve performance
* Raise exceptions now instead of using `break`
* Zipped lines 163-164 per @colinsurprenant
* In line 280, this change is a regression. The authfile is tiny, so this should still be okay, and it's only read once. Tests failed without this change.
* Use `has_key?` instead of `include?()` in multiple places.
* In the spec/test, I fixed a typo that was bugging me.
With this commit, all tests pass!
```
$ bin/logstash rspec -fd spec/codecs/collectd.rb
Using Accessor#strict_set for specs
Run options: exclude {:redis=>true, :socket=>true, :performance=>true, :elasticsearch=>true, :broken=>true}
LogStash::Codecs::Collectd
None
should parse a normal packet
Sign
should parse a correctly signed packet
should not parse an incorrectly signed packet
Encrypt
should parse an encrypted packet
should not parse unencrypted packets when encrypt is configured
Finished in 2.1 seconds
5 examples, 0 failures
```
Consistent failure if I didn't put `next if typename.nil?` before the rest of the statement. This compromise puts 2 `next if` statements, then an implied `else` since those were the two conditions I needed to check 😄
* master: (208 commits)
Fix for LOGSTASH-2093
Fix for LOGSTASH-2129
Bump Elasticsearch to 1.1.1 and Kibana to 3.0.1
Permit relative path or $PATH searches for the java command.
Add LS_LOG_DIR option
Improve package acceptance tests
Fix minor issues with acceptance test
Fix minor bug in init script found after acceptance test
Add gemfile
Initial commit of package acceptance testing
Typo
Copy-paste typo fix
Make embedded => true respect `bind_host` setting.
Start ES embedded server before creating a client.
fix and regression tests for github issue #1258
fix for undefined method + for nil:NilClass for invalid paramters
reenabled multiline filter specs, refactored concurent streams generator, cleaups
flush filters at end of test input
flush support in multiline filter
Adding new sysv init style scripts based on pleaserun
...