Commit graph

61 commits

Author SHA1 Message Date
Pier-Hugues Pellerin
bc01bd1fb0 bump version to 5.1.2
Fixes #6381
2016-12-08 15:24:20 -05:00
Suyog Rao
86ef0d9190 Bump version to 5.1.1 (#6334) 2016-11-30 15:48:59 -08:00
Guy Boertje
ee40051271 Allow for exception instances to get serialized in JSON logging 2016-11-30 15:45:19 -08:00
Pier-Hugues Pellerin
f86f1377cc Chagne PluginRegistry -> PLUGIN_REGISTRY
Fixes #6109
2016-11-11 09:43:44 -05:00
Colin Surprenant
e0ea02b045 fix tagging edge cases
add comment and use Arrays.asList()

brain fart between camelCase and snake_case
2016-11-04 14:13:13 -04:00
Colin Surprenant
ab05082a89 merge feature/java_persistence into 5.x 2016-10-31 17:03:40 -04:00
Guy Boertje
8cec4fa514 add Event method_missing to give better error messages for #[] and #[]=
Change strings and regexs to CONSTANTS.

move method missing code to event.rb

doh - put Event class in already defined Logstash module

Fixes #6045
2016-10-13 10:43:34 -04:00
Colin Surprenant
5824080871 renamed namespace com.logstash to org.logstash
few auto-rename glitches fixes

few auto-rename glitches fixes

few auto-rename glitches fixes

few auto-rename glitches fixes

few auto-rename glitches fixes
2016-09-12 15:05:59 -04:00
Suyog Rao
254297eec7 [5.x] Bump version to 5.1.0 (#5881)
* [5.x] Bump version to 5.1.0
2016-09-08 08:35:53 -07:00
Tal Levy
b545b83390 Migrate Logstash to Log4j2 Logging (#5651)
Migrate to use Log4j2 for Logstash logging
2016-08-26 18:11:22 +00:00
Colin Surprenant
2002bace3c base SignalEvent class and cleanup LogStash namespace 2016-08-24 14:35:28 -04:00
Suyog Rao
16aefd8ecb Mirror 5.0 to master's version (#5803) 2016-08-22 19:22:07 +00:00
Suyog Rao
01d3ced998 Fix the require_jar warning about jackson jars
jrjackson was using 2.7.3 whereas core was using 2.7.0. Upgraded jrjackson
to 0.4.0 and core libs to match jars in jrjackson

Fixes #5159

Fixes #5750
2016-08-09 21:00:22 -04:00
Suyog Rao
244e88ae25 Bump version to 5.0.0-alpha5 (#5698) 2016-07-27 11:32:01 -07:00
Guy Boertje
9020acedf0 Implementation - Java Event type casting conversion optimization (#4999)
* add RubyJavaObject and Valuefier classes and use, junit and rspec pass

* add benchmark

* update benchmark
Deep fetch      6.015M (± 4.4%) i/s -     60.086M

* change warmup to 30 seconds

* support for rubyValue = RubyNil, shortcut null when asking for javaValue

* prevent Lists and Maps from being converted to RubyJavaValue too

* camel case: is_ruby_nil

* rename method, use renamed method, make serializable and add junit test

* encapsulate refs to RubyJavaObject to setableValue, use StringBuilder

* remove unused newObj

* some fixes after PR review

* wip

* ruby and java tests pass with BiValues.

* Benchmarks are still good

* Fixes for spec failures in normal event specs

* integrate JavaProxy support into BiValues

* edit a TODO

* rebase master and updates from PR review.

* revert the use of JavaUtil.convertJavaToUsableRubyObject

* allow initTimestamp to handle NullBiValue

* remove TimeBiValue, convert Joda DateTime and Ruby Time to Timestamp beforehand
2016-07-21 09:13:01 +01:00
Joao Duarte
a6db0c9d54 update version to 5.0.0-alpha4 2016-06-21 12:29:23 +01:00
Joao Duarte
fa0eeb579f add single command release task and other release support tooling
Purpose:

* manage releases through a minimum number of rake tasks
* simplify building of snapshot builds
* create staged artifacts, candidates for releases, that required no changes to become releases
* this means the snapshot release process will not involve publishing gems, therefore:
* the gem artifacts should only be published to rubygems as a final artifact, at the time of GA

Changes:

* release artifacts no longer depend on gems of core components
* all core components are used locally AS-IS to minimize code changes between snapshot, RC and GA
* `versions.yml` describes the versions of all logstash parts and package
  * `rake version:set[version]` manage the yaml file and push the changes to the gemspecs/version.rb files
  * `rake version:set_plugin_api[version]` manage the yaml file and push the changes to the gemspecs/version.rb files
  * `rake artifact:all` generates SNAPSHOT artifacts: tar.gz, zip, rpm, deb
  * `RELEASE=1 rake artifact:all` creates release candidate artifacts + 4 gems: logstash-core, logstash-core-event, logstash-core-event-java and logstash-core-plugin-api

implements #5416 and #5414

Fixes #5460
2016-06-21 12:29:18 +01:00
Suyog Rao
6f64b7031d Release 5.0.0-alpha3.snapshot3 (#5519) 2016-06-17 12:57:52 -07:00
Guy Boertje
c937160364 Fix Javafier for MapJavaProxy, ArrayJavaProxy, ConcreteJavaProxy. (#5474)
* Fix Javafier for MapJavaProxy, ArrayJavaProxy, ConcreteJavaProxy.
+ JUnit tests + Rspec test

* fix splat imports
* use a method instead of switch case code and throw an error if we don't
know how to handle the wrapped type.
* Add hand crafted map to use in rspec from Java directly and rspec test
* changes for review comments.
2016-06-17 12:27:52 -07:00
Suyog Rao
f5d6942daa Release 5.0.0-alpha4.snapshot2 (#5505) 2016-06-15 13:47:32 -07:00
Suyog Rao
45ee712ac3 Release 5.0.0-alpha4.snapshot1 (#5441) 2016-06-03 10:47:10 +02:00
Suyog Rao
68bf39e659 Release 5.0.0-alpha3 gems and lock file (#5394) 2016-05-31 12:05:53 +02:00
Suyog Rao
9764584698 Release 5.0.0.alpha3 RC8 (#5386) 2016-05-29 21:15:41 +02:00
Suyog Rao
4bd26f2c53 Release 5.0.0-alpha3.snpashot5 (#5368) 2016-05-26 15:02:51 -07:00
Suyog Rao
03ece707c7 Release 5.0.0-alpha3 snapshot4 (#5360) 2016-05-26 07:56:11 -07:00
Colin Surprenant
5cdd434612 optimize Java Map initialization 2016-05-25 15:06:36 -04:00
Tal Levy
7a1851ddc7 have Event#toMap return copy
Fixes #5296
2016-05-16 19:40:57 +00:00
Pier-Hugues Pellerin
f883d90622 Release a new beta1.snapshot2 gem
Releated to #5273

Fixes #5275
2016-05-11 16:02:49 +00:00
Colin Surprenant
c375ec1e48 remove unnecessary jar file introduced for the plugin-api-v2 transition 2016-05-06 15:01:28 -04:00
Colin Surprenant
537d6a2780 refactor Ruby Event getter and setter
refactor wip gemfiles

refactor Java Event getter and setter

bump plugin-api to 2.0

use plugin-api 2.0

switch to core-event-java

include logstash-core-event-java.jar jar file so that gem dependency using the source tree work

updated core plugins to core-api 2.0

added grok for refactor branch

fix rebased specs

remove temp plugins github paths

remove commented out tmp alias_method
2016-05-06 13:47:03 -04:00
Suyog Rao
59e113c852 Release 5.0 alpha2 (#5233)
* Release 5.0.0-alpha2
2016-05-02 11:15:16 -07:00
Suyog Rao
a8380099e4 Release 5.0.0-alpha2 snapshot2 (#5225)
* Release 5.0.0-alpha2 snapshot2 release
2016-04-29 10:21:09 -07:00
Suyog Rao
0fbded8e43 Release alpha2 snapshot1 2016-04-26 13:04:41 -07:00
Colin Surprenant
4850895930 Ruby and Java Event Accessors lut invalidation
lut invalidation spec

fix lut invalidation

extra comment

fix lut invalidation, invalid target path, with tests

post review fixes
2016-04-25 11:04:13 -04:00
Pier-Hugues Pellerin
0f5089d1f0 Logstash 5.0.0 alpha1
Fixes #5011
2016-04-05 14:08:06 +00:00
Pier-Hugues Pellerin
ea7ec090c8 preps for 5.0.0-alpha1.snapshot2
Fixes #5006
2016-04-04 21:45:38 +00:00
Suyog Rao
318f07e5fc Bump version to 5.0.0-alpha1.snapshot1 2016-03-29 18:21:51 -07:00
Colin Surprenant
6769dc4853 support RubyBignum in Javafier
cosmetics

Fixes #4900
2016-03-29 20:05:11 +00:00
Pier-Hugues Pellerin
15aed859de Update the gem.authors and gem.email with the Elastic information
Fix #4880
2016-03-23 17:36:10 -07:00
Colin Surprenant
f3c29faeaf correctly handle BigDecimal Rubyfying
BigDecimal fix spec
2016-03-18 09:54:29 -04:00
Colin Surprenant
a1ac7e699f renamed newTimetsamp to newTimestamp 2016-03-17 18:54:41 -04:00
Colin Surprenant
8d592240ad return current time usec, not epoch usec, with millisec precision, support BigDecimal in Timestamp#at
return current time usec, not epoch usec, with millisec precision, because you know, Joda

correctly support BuigDecimal in Timestamp#at

specs for Timestamp#usec and Timestamp#at with all supported type

typo

more specs
2016-03-17 15:02:20 -04:00
Suyog Rao
b9369abc0e Revert commit 4f7299a
Need to revert bump to 5.0.0.dev because individual plugins
will not install on top of this version.

In plugins' gemspec, the constraint is
`s.add_runtime_dependency "logstash-core", ">= 2.0.0", "< 3.0.0"`

This needs to be mass updated, and then bumped to 5.0.0

Fixes #4828
2016-03-17 02:12:56 +00:00
Joao Duarte
4f7299a555 bump to 5.0.0.dev
Fixes #4814
2016-03-17 00:02:03 +00:00
Colin Surprenant
fa5b154ef8 from_json should not generate new Event on blank/empty json input 2016-02-10 16:25:25 -05:00
Colin Surprenant
ad6cb41726 new Event#from_json method
from_json POC

add Event#from_json with corresponding specs

pre-inititalize error class constants

tests for Event#from_json

support array of events in from_json, upgrade to latest jackson

add test for partially invalid json array
2016-02-09 11:46:44 -05:00
Colin Surprenant
1260f63a2a force ruby-maven version 2016-02-04 17:09:05 -05:00
Colin Surprenant
3a4c1ec7e4 use static Jackson mapper 2016-01-29 17:37:51 -05:00
Colin Surprenant
40b0685468 fix jar generation for artifact packaging 2016-01-26 17:52:13 -05:00
Colin Surprenant
5a522a0037 code cleanups and integration work for defaulting to Java Event implementation
cleaned dependencies, removed Guava code

default to java event

also compile java event

use json-unit for json result assertions

remove Java 8 specific constructs to be able to compile on Java 7

use jar-dependencies

better jar file loading

copy jar into lib after build

add post-build copy and clean of gem jar and re-indented file

fix jar destination

include generated jar in gem

remove useless ArrayList constructions

add tests for KeyNode.join method

remove useless  shadow and disable unchecked warnings

update gradle dependency to 2.8

fix deprecated asserEquals usage

simplify convoluted list contruction

fix array fields nil values handling

moar nil value tests

simplify for loop
2016-01-26 12:39:35 -05:00