forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clean up non-indexable policy handling in the ES output (elastic#38591)
Simplify non-indexable policy handling: - Replace the lookup table of generic factories and custom index selectors with a simple `deadLetterIndex` string, since the only valid non-indexable policies are to use a dead letter index or to drop the event if none is provided. - Make `elasticsearch.ClientSettings` and its fields internal rather than public, and clarify some field names. (Aside from better encapsulation, this makes it easier to see that this cleanup doesn't break anything else.) This is a preparation for the pending early-encoding change. The non-indexable policy code needs to be rewritten to support early encoding, so I split most of the cleanups out into this standalone PR to be kinder to code reviewers. This PR doesn't change any user-visible behavior.
- Loading branch information
Showing
9 changed files
with
204 additions
and
276 deletions.
There are no files selected for viewing
This file contains 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 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.