Commit graph

28 commits

Author SHA1 Message Date
Joao Duarte
85d0926244 cleanup many rakelib tasks that aren't used anymore
* simplify the plugins-metadata.json file
* sort and update the plugin list in the rakelib/plugins-metadata.json
* remove dependency on twitter input for testing
* sorted Gemfile.template (grouped by group)
* remove default plugins from Gemfile.template

Fixes #10509
2019-03-15 16:26:58 +00:00
João Duarte
d090673fa9
pin childprocess to 0.9 (#10411) 2019-02-07 16:23:51 +00:00
Joao Duarte
2910faa57f fix building of deb and rpm
fpm requires json 1.x but the artifact rake tasks
will activate the default gem json 2

This PR ensures json 1 is activated early and is present right after
jruby is bootstrapped.

Also downgrades fpm to 1.3 as 1.11.0 wasn't building correctly

Downgrades .ruby-version to a version we have available in CI

Fixes #10396
2019-02-06 09:39:55 +00:00
João Duarte
8d19e6cef9
Cleanup dependencies (#10171)
* cleanup Gemfile.template dependencies
* cleanup logstash-core gem dependencies
2019-02-05 16:38:49 +00:00
Ry Biesemeyer
583ec6b625
Java 11 support (#10279)
* bump jruby to 9.2

* don't rely on logstash-base docker image

* work around webmock ruby 2.5 support

* ensure data folder exists in docker

* change fixnum and bignum to integer

* FileUtils.rmdir to rm_rf

this is because from 2.3 to 2.5 FileUtils.rmdir will throw an exception
if the directory isn't empty. On 2.3 the operation will just not delete
the directory silently.

* bump jruby to 9.2.5.0 and fix test

* make rake default task since prepare pack needs it

* Resolve compiler warnings (#10247)

There are 3 types of compiler warnings that are either resolved or suppressed:

1. Rawtypes: In JRuby 9.2, `RubyArray` is a generic, so references throughout
   our codebase to the now "raw" type trigger warnings. In most cases we cannot
   actually resolve the issue, since the JRuby-provided methods for creating
   `RubyArray`s still return the raw type, so these have been suppressed.

2. Deprecations:
   - `RubyString#intern19()` -> `RubyString#intern()`
   - `RubyString#downcase19(ThreadContext)` -> `RubyString#downcase(ThreadContext)`
   - `NativeException`: remove import & reference directly; suppress usage
     warnings
   - `RaiseException()`: migrate to equivalent non-deprecated methods wherever
     possible; in some cases where we are using this in conjunction with the
     also-deprecated `NativeException` to preserve java stacktraces, there
     seems to be no non-deprecated path forward, so these cases have been
     suppressed.

3. Redundant Casts
   - Resolved

* JRuby 9.2 bundler shenanigans (#10266)

* Revert "Revert "remove forced dependency on old bundler (#9395)""

This reverts commit bef984143d.

* plugin management: update internal bundler to 1.17.x APIs

* deps: update dev dependency webmock to version compatible with JRuby 9.2

* spec: update Pack fixture to include manticore version that doesn't conflict

* build: update gradle to version that has Java 11 support

* java11: resolve or suppress deprecation warnings

* Remove superfluous flag opting into ParNew GC implementation

When opting into CMS garbage collector with `XX:+UseConcMarkSweepGC`, the
young generation collector ParNew has been the default since Java 8, making
the `XX:+UseParNew` flag redundant; the flag was removed in Java 9, and
should no longer be specified to work with modern Javas.

https://bugs.openjdk.java.net/browse/JDK-8006478
https://openjdk.java.net/jeps/214

* spec: set thread name to example description for easier debugging

* spec: prevent errors in testing specs by checking against skip list before using

* no-op: remove use of `HashMap#computeIfAbsent` on single-threaded code

> This method will, on a best-effort basis, throw a `ConcurrentModificationException`
> if it is detected that the mapping function modifies this map during computation.
>
> -- https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/HashMap.html#computeIfAbsent(K,java.util.function.Function)

* qa: by default, run integration against Elastic Stack 6.5.x

To support development on Logstash on top of Java 11, default to testing
against an Elastic Stack that is capable of running on Java 11.

* qa: ignore deprecation warnings when comparing offline pack output

* qa: add Java 9+ support to ChildProcess dev dependency

this can safely be removed when the childprocess gem supports Java9+
https://github.com/enkessler/childprocess/pull/141

* qa: allow connections to localhost in webmock

* bump jrjackson version

* fix filebeat integration tests

* spec: ensure license compliance spec runs first

The license compliance spec that validates the licenses of bundled
plugins appears to not be compatible with the hooks that we inject
into bundler for plugin management, and will fail in obscure ways
when run after those hooks have been added. Since those hooks are
not necessary for validating licenses, the easiest solution was to
ensure that those specs run first, before the VM has been poluted.

Since the gradle/junit/rspec bridge that is currently in place
runs all specs in the same JVM, we also need to make sure that the
rspec "world" is reset before a run, to ensure that it doesn't
retain spec definitions from previous runs.

Also updates the rake invocation, although I'm not sure it is used
any more.
2019-02-04 16:36:11 -08:00
João Duarte
e0638e25a9 add http and memcached filters to default set of plugins (#10213) 2018-12-18 14:47:17 +00:00
Joao Duarte
1ed4f018a1 rename appsearch to elastic_app_search
Fixes #10130
2018-11-08 16:37:16 +00:00
Joao Duarte
7e1ffd3d35
add snmp input to default plugins 2018-10-24 13:17:10 +01:00
Joao Duarte
dc41033545 add appsearch output to default plugin list
Fixes #10062
2018-10-24 12:14:00 +00:00
Jake Landis
e22457252f Introduction of the Azure module (experimental)
This module leverages the Azure Event Hub to read events from the activity log and sql diagnostics.  Please note this module is considered experimental till otherwise noted.

This change also introduces logstash-input-azure_event_hubs as a default plugin

Fixes #9729
2018-07-02 16:34:49 +00:00
Armin
b8bd364f27 BUILD: lock rake at 12.2.x
Fixes #9685
2018-05-30 09:53:57 +00:00
Andrew Cholakian
26f5923e2d Add test deps that x-pack will use
When we merge x-pack in we will axe its gemspec, which isn't used anyway.
It does need a couple more test deps, which we add in here

Fixes #9224
2018-03-09 22:55:53 +00:00
Andrew Cholakian
cbbfcd42c2 Pin atomic gem per #9194
Fixes #9204
2018-03-02 04:37:11 +00:00
Guy Boertje
33b151707a
add jdbc_static (#8933)
* add jdbc_static

* sort logstash-* gems and add jdbc_static to plugins-metadata.json
2018-01-15 17:26:37 +00:00
Jake Landis
590e47fced Pin webrick to compatible version
Fixes #8845

Fixes #8846
2017-12-16 15:35:06 +00:00
Armin
c5fa78c7fa #8280 remove simplecov
Fixes #8536
2017-10-26 12:15:12 +00:00
Armin
012a432009 MINOR: Remove unused docker-api as development dependency
Fixes #8533
2017-10-26 08:32:09 +00:00
Armin
54611c3699 MINOR: Upgrade to newest devutils
Fixes #8487
2017-10-13 06:49:19 +00:00
Joao Duarte
fbd1db1a12 add missing default plugins to Gemfile template
Fixes #8431
2017-10-06 14:19:02 +00:00
Pier-Hugues Pellerin
4dc2fd3ddd Remove unecessary dependency file-dependencies
To understand why we can now remove this gem we have to go back at the
history of LS 1.5 and the choice we made back them. In the begining
plugins depending on external files like the `user-agent` or the `filter-geoip`
were not bundling theses files in the gem.

The `file-dependencies` was providing a new hook when plugins were
installed to trigger the file download.

In the context of making the plugins work in an offline environment we
need to make sure that every plugins external resources are present in
the gem.

We have currently a few plugins that require external files and they all
bundle it. So I think its safe to remove that feature, also the hook was
not triggered correctly. So it was a NOOP.

Fixes #8298
2017-09-18 18:56:58 +00:00
Jake Landis
acd632aa89 Pin logstash-output-s3 to 4.0.9+ since prior version will not work with JRuby 9k
Fixes #7735
2017-07-20 13:22:14 +00:00
Suyog Rao
23b8d4d948 Add translate filter to default filter list (#7713) 2017-07-17 10:43:24 -07:00
Suyog Rao
33d1164901 Update default plugins list (#7669)
Based on google analytics from docs pageviews, we are updating the bundled
plugins to remove plugins which doesn't have to be in the default package.

They can still be installed via bin/logstash-plugin
2017-07-12 21:43:07 +02:00
Armin
153eea67b5 #6828 add json-schema dependency
Fixes #7419
2017-06-29 00:05:16 +00:00
Armin
24d2faba10 MINOR: Update docker-api gem to latest version to improve stabilitiy
Fixes #7461
2017-06-15 12:48:49 +00:00
Pier-Hugues Pellerin
76286b4f0e use jruby 9.1.9.0
Work done by @guyboertje and @ph

Since JRuby 1.7.25 is now EOL we are migrating Logstash to use JRuby 9k and JDK8 only,
Not much needed updating to make this work, its was mostly a drop in replacement from the previous version.

The major point was the change in the implementation of Time in JRuby, JRuby now use `java.time`
instead of joda time, this allow JRuby to have nanoseconds precision on time object.
2017-06-12 12:35:10 -04:00
Suyog Rao
7733dd0f86 Add DLQ to default plugins (#7342) 2017-06-06 11:52:12 -07:00
Armin Braun
8e9840f298 ignore .Gemfile.jruby-1.9.lock, .lock and Gemfile
Fixes #6985
2017-05-02 13:23:34 +00:00
Renamed from Gemfile (Browse further)