-
Notifications
You must be signed in to change notification settings - Fork 25.4k
[Logstash] Move elastic_integration
plugin usage to ES logstash-bridge.
#131486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mashhurs
merged 26 commits into
elastic:main
from
mashhurs:move-to-bridge-stable-api-investigation
Jul 24, 2025
Merged
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
b9cdd5b
Testing painless processors extension.
mashhurs e3310cd
Test paintless spaial, wildcard and constant keyword extensions.
mashhurs 3a6a795
Fix the bug that when null applied for Map.of() which may cause NPE.
mashhurs e2dd123
Debug
mashhurs 84f38e3
Debugging: require delegate and its metadata non null to get specific…
mashhurs 78a3394
Debugging: instead of Map.copyOf(), send ingest metadata as it is.
mashhurs 38b25ce
Make metadata version field accessible, introduce inverse wrapper wit…
mashhurs 0e70a6c
RedactPlugin, IngestCommonPlugin and IngestUserAgent plugins moved to…
mashhurs b7ac030
Ingest common plugin simplification.
mashhurs 0d0acef
[CI] Auto commit changes from spotless
577e0f2
Open an access for the x-pack spatial module resources.
mashhurs 94aa3e2
[CI] Auto commit changes from spotless
87774ae
Open access to resources in mapper constant keyword.
mashhurs bfa2d27
Add an access to resource in x-pack wildcard module.
mashhurs 4b1ef11
Export and open access to sub-package spatial modules.
mashhurs fb835ba
Provide module service implementations with provides keyword in x-pac…
mashhurs b4346d3
Export x-pack spatial module packages to make accessible to ES server…
mashhurs a9981f5
Merge branch 'main' into move-to-bridge-stable-api-investigation
mashhurs 290e82a
spike refactor of logstashbridge stable API
yaauie ba80d06
Merge pull request #1 from yaauie/stable-api-clarity-external-internal
mashhurs cd44d2f
Format the recent logstash-bridge changes.
mashhurs 4eee343
Wildcard and mapper constant keyword modules open resource access to …
mashhurs ede5de5
Merge branch 'main' into move-to-bridge-stable-api-investigation
mashhurs 166d4be
Rename constant-keyword, wildcard, redact and spatial modules in a wa…
mashhurs c9b3be1
Merge branch 'main' into move-to-bridge-stable-api-investigation
mashhurs 7f84caf
Remove unnecessary constant class in the ingest common plugin bridge.
mashhurs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...idge/src/main/java/org/elasticsearch/logstashbridge/plugins/IngestCommonPluginBridge.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
package org.elasticsearch.logstashbridge.plugins; | ||
|
||
import org.elasticsearch.ingest.common.IngestCommonPlugin; | ||
import org.elasticsearch.logstashbridge.StableBridgeAPI; | ||
import org.elasticsearch.logstashbridge.ingest.ProcessorBridge; | ||
|
||
import java.util.Map; | ||
|
||
public class IngestCommonPluginBridge implements IngestPluginBridge { | ||
|
||
private final IngestCommonPlugin delegate; | ||
|
||
public IngestCommonPluginBridge() { | ||
delegate = new IngestCommonPlugin(); | ||
} | ||
|
||
@Override | ||
public Map<String, ProcessorBridge.Factory> getProcessors(final ProcessorBridge.Parameters parameters) { | ||
return StableBridgeAPI.wrap(this.delegate.getProcessors(parameters.unwrap()), ProcessorBridge.Factory::wrap); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...e/src/main/java/org/elasticsearch/logstashbridge/plugins/IngestUserAgentPluginBridge.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
package org.elasticsearch.logstashbridge.plugins; | ||
|
||
import org.elasticsearch.ingest.useragent.IngestUserAgentPlugin; | ||
import org.elasticsearch.logstashbridge.StableBridgeAPI; | ||
import org.elasticsearch.logstashbridge.ingest.ProcessorBridge; | ||
|
||
import java.util.Map; | ||
|
||
public class IngestUserAgentPluginBridge implements IngestPluginBridge { | ||
|
||
private final IngestUserAgentPlugin delegate; | ||
|
||
public IngestUserAgentPluginBridge() { | ||
delegate = new IngestUserAgentPlugin(); | ||
} | ||
|
||
public Map<String, ProcessorBridge.Factory> getProcessors(final ProcessorBridge.Parameters parameters) { | ||
return StableBridgeAPI.wrap(this.delegate.getProcessors(parameters.unwrap()), ProcessorBridge.Factory::wrap); | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...ash-bridge/src/main/java/org/elasticsearch/logstashbridge/plugins/RedactPluginBridge.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
package org.elasticsearch.logstashbridge.plugins; | ||
|
||
import org.elasticsearch.license.XPackLicenseState; | ||
import org.elasticsearch.logstashbridge.ingest.ProcessorBridge; | ||
import org.elasticsearch.xpack.redact.RedactProcessor; | ||
|
||
import java.util.Map; | ||
|
||
public class RedactPluginBridge implements IngestPluginBridge { | ||
@Override | ||
public Map<String, ProcessorBridge.Factory> getProcessors(ProcessorBridge.Parameters parameters) { | ||
// Provide a TRIAL license state to the redact processor | ||
final XPackLicenseState trialLicenseState = new XPackLicenseState(parameters.unwrap().relativeTimeSupplier); | ||
|
||
return Map.of( | ||
RedactProcessor.TYPE, | ||
ProcessorBridge.Factory.wrap(new RedactProcessor.Factory(trialLicenseState, parameters.unwrap().matcherWatchdog)) | ||
); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.