-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Elasticsearch ingest node pipeline mapping #2064
Comments
Seems quite flexible, I cannot think of a use case not covered :-). I guess a first version could be to just cover the first two sample configs (set pipeline using format strings + a default value in case of errors). That should cover already most use cases, right? |
That means to select a pipeline for a prospector I could use:
One additional thing I would like to have is that I can use:
This would be possible if we make If both options are used in a config file, it would "merge" the defined pipelines similar to what it does with fields or tags. |
original proposal has been implemented and merged |
Implemented in #2109 |
Elasticsearch event pipeline can currently only configured via
output.elasticsearch.parameters.pipeline
. Improve pipeline configuration+selection by:Introduce new setting
output.elasticsearch.pipelines
using an array of pipeline mapping rules. The first rule matching defines the pipeline name to use. If no rule matches, no pipeline will be used for said event:when
key-word (like conditionals support in libbeat processors).pipeline
-setting. It can be set by events using format strings.pipeline
-setting) requires an additional name mapping table on viamappings
-setting. Thedefault
-setting is used, if the pipeline is unknown to the mapping table.pipeline
-keyword matches only if format-string can be applied.Sample configurations:
fields.pipeline
using format string (pipelines names can be composed from multiple fields when using format strings):fields.pipeline
, but fall back todefault-pipeline
if field is missing:default-pipeline
, if no mapping is defined or field is missing:The text was updated successfully, but these errors were encountered: