logstash/x-pack
Andrea Selva ed38254f45
[Backport 8.x] Reimplement LogStash::String setting in Java (#16576) (#16959) (#16961)
Non clean backport of #16959 from 8.x to 8.16 (which is a non clean backport of #16576 to 8.x)

Changes respect to 8.x:
- in 8.x the `with_deprecated_alias` receives also a parameter specifying the version where the setting is removed. In this case we removed the extra parameter to the method a0378c05cb/logstash-core/lib/logstash/environment.rb (L79)
- fixed the test removing the check for the remove version a0378c05cb/logstash-core/spec/logstash/settings/setting_with_deprecated_alias_spec.rb (L157)

----

Reimplements `LogStash::Setting::String` Ruby setting class into the `org.logstash.settings.SettingString` and exposes it through `java_import` as `LogStash::Setting::SettingString`.
Updates the rspec tests in two ways:
- logging mock is now converted to real Log4J appender that spy log line that are later verified
- verifies `java.lang.IllegalArgumentException` instead of `ArgumentError` is thrown because the kind of exception thrown by Java code, during verification.

* Fixed the rename of NullableString to SettingNullableString

* Fixed runner test to use real spy logger from Java Settings instead of mock test double
2025-01-27 17:42:38 +01:00
..
ci Clean up left over scripts after CI migration (#15926) 2024-02-12 11:26:28 +02:00
lib [Backport 8.x] Reimplement LogStash::String setting in Java (#16576) (#16959) (#16961) 2025-01-27 17:42:38 +01:00
modules [Backport 8.16] Update deprecation warning to provide the version the ArcSight modue is removed (#16648) 2024-11-06 15:24:18 +01:00
qa/integration fix line used to determine ES is up (#16349) 2024-07-24 16:48:42 +02:00
spec [Backport 8.x] Reimplement LogStash::String setting in Java (#16576) (#16959) (#16961) 2025-01-27 17:42:38 +01:00
src/test/java/org/logstash/xpack/test Refactor: drop redundant (jruby-complete.jar) dependency (#13159) 2022-02-02 06:55:26 +01:00
build.gradle Update junit 4 13 (#16138) 2024-05-03 13:49:16 -07:00
CHANGELOG.md Migrate x-pack-logstash source to logstash 2018-04-24 10:46:15 -05:00
gradle.properties Defensively mark x-pack as a distributed artifact 2018-05-15 19:42:31 +00:00
README.md Migrate x-pack-logstash source to logstash 2018-04-24 10:46:15 -05:00
settings.gradle Load tests via JUnit 2018-05-15 16:15:39 +00:00

Elastic License Functionality

This directory tree contains files subject to the Elastic License. The files subject to the Elastic License are grouped in this directory to clearly separate them from files licensed under the Apache License 2.0.

Logstash X-Pack

Set of plugins that form Logstash X-Pack features.

Setup

Logstash X-Pack features are a default part of Logstash; as X-Pack features provide integrations with the rest of the Elastic Stack, they will need to be configured to point to an Elasticsearch instance in order to work.

Opting Out of X-Pack

If you are unable or unwilling to run the Elastic-Licensed X-Pack Features and Functions, OSS-only distributions are available from the downloads page; to run Logstash from source without X-Pack, ensure that your environment variable OSS is exported with a value of true:

export OSS=true

Configuration

To configure x-pack settings, you can edit config/logstash.yml and add xpack.* configs from the logstash x-pack settings.

Building documentation

This repo contains information that is used in the Logstash Reference.

To build the Logstash Reference on your local machine, use the docbldls or docbldlsx build commands defined in https://github.com/elastic/docs/blob/master/doc_build_aliases.sh