Commit graph

40 commits

Author SHA1 Message Date
Suyog Rao
8f39da19b8 Bump to 5.1.3 (#6666)
* bump to 5.1.3
2017-02-08 21:05:38 -08:00
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
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
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
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
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
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
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
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
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
Colin Surprenant
cefd6be94f proper java to ruby conversions and specs
proper java to ruby convertion and specs

missing ruby conversions

add missing timestamp= method

added usec method

missing constants

added usec, tv_usec, year methods

clean ruby_to_hash_with_metadata method

rework boolean cast

add BigDecimal

missing import

reworked Ruby to JAva type conversion

better nil objects handling and better debug trace
2015-12-15 16:39:08 -05:00
Colin Surprenant
6a3e0215a3 support clear_cache and cache_size methods in StringInterpolation, adjust specs
Fixes #4325
2015-12-10 00:59:56 +00:00
Colin Surprenant
d74d41cb30 logstash-core & logstash-core-event extraction to support logstash-core-event-java impl, relates to #4191
fixed timezone issue

extracted logstash-core and reorganized specs

extracted logstash-core-event

extract java Event into logstash-core-event-java in a proper gem

remove obsolete jruby_event bootstrapping

fix require path

add java code bootstrap

use logstash-core-event/logstash-core-event.rb

remove obsolete files

basic instructions

LogStash::Json need to be initialized from event

update jruby and gradle versions

update compile:logstash-core-event-java rake task

WIP tasks refactor

fix gem.files

skip test if class is not defined

fix gem related tasks for new structure

add gem spec dirs in core tests

bootstrap java implementation when requiring timestamp

new Cloner class and Event clone impl

fix array fields assignments, see #4140

don't rely on json implementation ordering

fix skipped last iterpolation char

remove implementation specific unnecessary check

also require ruby classes

define error class in ruby

raise exception on invalid format

remove implementation specific tests and extract and put logger related test in pending

missing bits for having all core timestamp specs pass

run all core specs

remove leftover

comment regex

missing encoding header

revert to logstash-core-event by default

finished proper gemification

useless require

dynamically pick specs depending on logstash-core-event-* implementation

logstash root package version

missing file for proper gemification

do not build java event by default

always check for root logstash lib dir

fix concurrent-ruby version confict

fix rebase conflict

re-enable specs

user vars instead of constants

move non core code in bootstrap

document version files

move version file

remove useless code

use version in logstash-core

fix gem files list

put back concurrent-ruby version constrain as in master

add dependency on logstash-core-event

remove dependency on logstash-core to avoid circular dependency

fix rebase conflict

remove circular dependency

fix specs

update README
2015-11-16 16:40:19 -05:00