Commit graph

33 commits

Author SHA1 Message Date
João Duarte
1d1fa7a471
update commons-io commons-compress jrjackson databind (#15125)
* update commons-io to 2.13.0 and commons-compress to 1.23.0

* update databind and jackson
2023-06-29 09:02:32 +02:00
Andrea Selva
a126364102
Centralized version definition for snakeyaml and shadow plugin used in buildscripts (#14952)
Create a variable in the Gradle's 'ext' map to store the versions of libraries and plugins used across the various .gradle files.
2023-03-10 16:50:16 +01:00
João Duarte
15b2d88647
bump snakeyaml to 1.33 (#14881)
ensure logstash-core picks up 1.33 as well from jackson-data format-yaml's
transititive dependency.
2023-02-09 18:20:03 +00:00
João Duarte
4d6942c240
update jackson and jackson-databind to 2.13.3 (#13945)
In jackson-databind 2.10, enabling Default Typing requires having a type validator, and while there's an "allow all" validator called LaissezFaireSubTypeValidator, this commit also tightens the validation a bit by narrowing down the allowed classes.

The default typing validator is only applied to the ObjectMapper for CBOR, which is used in the DLQ, leaving the one for JSON as-is.

Other changes:
* make ingest-converter use versions.yml for jackson-databind
* update jrjackson
2022-06-06 09:47:44 +01:00
Andrea Selva
32675c1a88
Update Jackson databind in ingest-converter tool (#13900) 2022-03-16 12:33:27 +01:00
João Duarte
4919286e42
rename references of master branch to main branch (#13301) 2021-11-08 10:23:46 +00:00
Andrea Selva
728289e862
Switched to Gradle 7 (#13184)
This commit:
- Updates the Gradle wrapper to version 7.2
- Remove the deprecated jcenter and where it was used to retrieve Gradle's plugins it switches to gradlePluginPortal
- Insert an explicit dependency from test task to the log4j.properties manipulation task ("copyProductionLog4jConfiguration") used in integration
2021-09-08 10:42:13 +02:00
Andrea Selva
a7f6c01a3a
Update Snakeyaml version to 1.29 (#13129)
Snakeyaml is used only in the build chain, and it's not packaged with Logstash
2021-08-16 10:33:47 +02:00
andsel
aa3576d74d Moved ingest-converter tool from Javascript to Java, preserving the same behaviour (#12524) 2020-12-18 07:24:15 -08:00
andsel
690bade81f Added console prints in ingest-converter for not recognized processor definitions.
Adds console output for
- 'if' condition in 'set' processor
- unrecognized processor, like join
2020-11-10 07:52:51 -08:00
Rob Bavey
58314a7f0e
Update gradle version to 6.3 (#11742)
* Update gradle version to 6.3

Gradle versions prior to 6.3 cannot run under JDK14.
This commit upgrades the version of Gradle to 6.3, and removes all deprecation warnings that can currently be removed.

Changes include:
* Increase gradle memory to 2g
* Increase gradle memory in the license check job to 2g
* Replace use of `testCompile`
* Replace `runtime` with `runtimeOnly`
* Remove`compile` depedencies from gradle files
* Replace deprecated archive methods
* Fix dependencies report build
* Make jruby dependencies 'api', fix archiveVersion
* Set `duplicatesStrategy` for all tasks of type Copy
* Use `configureEach` for global 'withType' calls
** Use the recommended Tasks API calls
(https://blog.gradle.org/preview-avoiding-task-configuration-time)
* Run `./gradlew wrapper` earlier to improve caching
* Use copy with chown for resources that need to be run during `./gradlew wrapper`
2020-04-07 12:49:36 -04:00
João Duarte
e9c9865f40
Add apache and elastic license headers to source code files (#11673)
* add license header to ruby and java files
* add license header to erb and rake files
* add license headers to gradle files
2020-03-11 11:53:38 +00:00
andsel
71eed80d3c Fixes to JMH launch after upgrade to Gradle 5
Fixes #11459
2019-12-30 10:43:44 +00:00
João Duarte
e807a9e030
Update gradle wrapper to 5.6.4 (#11389)
* upgrade gradle wrapper to the latest 5.x release
* update shadow plugin to 4.x for gradle compatibility
* change dependency declaration to work around [breaking change in annotation processing](https://docs.gradle.org/current/userguide/upgrading_version_4.html#rel4.6:annotation_processor_configuration)
2019-12-06 15:39:17 +00:00
Dan Hermann
48594baf2b Add license reporting task
Fixes #9331
2018-05-02 15:35:42 +00:00
Armin
b250b145a7 MINOR: Fix compiler warnings in Ingest Converter Test
Fixes #7703
2017-07-17 09:42:32 +00:00
Armin
04163d05e8 #7665 pattern definitions hash should be proper ruby hash without commas
Fixes #7670
2017-07-13 12:56:12 +00:00
Armin
892a2d90db #7642 Fix windows line endings issues in ingest test
Fixes #7644
2017-07-11 15:17:50 +00:00
Armin
62f8270308 #7642 make test path handling portable to Windows
Fixes #7643
2017-07-11 14:05:04 +00:00
Suyog Rao
b8ea070706 Enhance ingest convert to add input/output (#7456)
* Add input/output to converter

* update CLI help

* remove newline and use join on array
2017-06-15 16:21:19 -07:00
Suyog Rao
fae99f1f9f Handle ingest on_failure processor (#7412)
* Handle ingest on_failure processor

Ingest `on_failure` processor allows to define a new sub-piplene when a failure
happens in the current processor. Logstash does not have an on_failure but this can
be emulated using the tag and conditional.

Also added a set processor converter which is typically used in `on_failure`.

* generalize on_failure method

* Add comments

* Fix indentation issue
2017-06-12 08:18:04 -07:00
Armin
12264efad2 #7329 invoker script for convert jar
Fixes #7335
2017-06-07 07:17:53 +00:00
Suyog Rao
647900c6e3 Handle rename ingest processor (#7332)
* Handle rename ingest processor

Fixes #7325
2017-06-06 00:06:49 -07:00
Suyog Rao
119b4f6768 Refactor common code to a util function
Fixes #7331
2017-06-06 06:37:39 +00:00
Suyog Rao
deb2ce9f3f Add ingest append (#7324)
* Add Append processor converto

* Fix bug in convert processor

* Updated comment

* add JSON processor convertor

* use the right name for the variable

* Fix the double space in convert
2017-06-05 22:48:48 -07:00
Armin
9c7a31c0c4 #7273 ingest to logstash DSL migration: gsub
Fixes #7311
2017-06-05 23:35:29 +00:00
Suyog Rao
ab3546ad77 Ingest convert processor (#7310)
* Handle ingest convert processor
2017-06-05 08:02:59 -07:00
Armin
34a5657e50 #7295 #7272 GeoIp and Complex Case Handling
Fixes #7302
2017-06-05 06:51:14 +00:00
Armin
e80bfe45e7 MINOR: Dry up gradle settings
Fixes #7298
2017-06-03 07:07:28 +00:00
Armin
2f9ab49775 #7294 Drying up js and fixing broken case for renaming dotted to square bracket naming schema
Fixes #7296
2017-06-03 07:02:09 +00:00
Suyog Rao
5378cc98bf Add date processor migration (#7275)
* add date migration with some refactoring

* Update comments

* get rig of unused imports

* #7275 fixes by @original-brownbear
2017-06-02 11:23:14 -07:00
Armin
e2ab1f57b4 #7241 tests and basic scaffold
Fixes #7244
2017-05-30 20:48:20 +00:00
Armin
9a3ffb8ff7 #7128 ingest json to grok js converter
Fixes #7238
2017-05-27 21:25:03 +00:00