logstash/x-pack
kaisecheng 6b2fa20622
disable xpack API and monitoring pipeline for serverless (#15277)
This commit adds a call to identify serverless cluster before fetching `/_xpack` to verify the license and supported features.
When it is serverless, the license checker uses hardcoded xpack info instead of calling xpack API. The internal pipeline of monitoring is disabled and logs error when configured to use legacy monitoring.

Fixes: 
ingest-dev#2303
ingest-dev#2284

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2023-08-31 17:00:13 +01:00
..
ci Introduce LS_JAVA_HOME environment variable (#13204) 2021-09-06 10:22:51 +02:00
lib disable xpack API and monitoring pipeline for serverless (#15277) 2023-08-31 17:00:13 +01:00
modules Rubocop: Enable most SpaceInside cops (#15201) 2023-07-20 09:49:46 -04:00
qa/integration Rubocop: Enable most SpaceInside cops (#15201) 2023-07-20 09:49:46 -04:00
spec disable xpack API and monitoring pipeline for serverless (#15277) 2023-08-31 17:00:13 +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 Refactor: drop redundant (jruby-complete.jar) dependency (#13159) 2022-02-02 06:55:26 +01: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