mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
This processor simply causes any remaining processors in the pipeline to be skipped. It will normally be executed conditionally using the `if` option. (If this pipeline is being called from another pipeline, the calling pipeline is *not* terminated.) For example, this: ``` POST /_ingest/pipeline/_simulate { "pipeline": { "description": "Appends just 'before' to the steps field if the number field is present, or both 'before' and 'after' if not", "processors": [ { "append": { "field": "steps", "value": "before" } }, { "terminate": { "if": "ctx.error != null" } }, { "append": { "field": "steps", "value": "after" } } ] }, "docs": [ { "_index": "index", "_id": "doc1", "_source": { "name": "okay", "steps": [] } }, { "_index": "index", "_id": "doc2", "_source": { "name": "bad", "error": "oh no", "steps": [] } } ] } ``` returns something like this: ``` { "docs": [ { "doc": { "_index": "index", "_version": "-3", "_id": "doc1", "_source": { "name": "okay", "steps": [ "before", "after" ] }, "_ingest": { "timestamp": "2024-10-04T16:25:20.448881Z" } } }, { "doc": { "_index": "index", "_version": "-3", "_id": "doc2", "_source": { "name": "bad", "error": "oh no", "steps": [ "before" ] }, "_ingest": { "timestamp": "2024-10-04T16:25:20.448932Z" } } } ] } ``` |
||
---|---|---|
.. | ||
append.asciidoc | ||
attachment.asciidoc | ||
bytes.asciidoc | ||
circle.asciidoc | ||
common-options.asciidoc | ||
community-id.asciidoc | ||
convert.asciidoc | ||
csv.asciidoc | ||
date-index-name.asciidoc | ||
date.asciidoc | ||
dissect.asciidoc | ||
dot-expand.asciidoc | ||
drop.asciidoc | ||
enrich.asciidoc | ||
fail.asciidoc | ||
fingerprint.asciidoc | ||
foreach.asciidoc | ||
geo-grid.asciidoc | ||
geoip.asciidoc | ||
grok.asciidoc | ||
gsub.asciidoc | ||
html_strip.asciidoc | ||
inference.asciidoc | ||
join.asciidoc | ||
json.asciidoc | ||
kv.asciidoc | ||
lowercase.asciidoc | ||
network-direction.asciidoc | ||
pipeline.asciidoc | ||
redact.asciidoc | ||
registered-domain.asciidoc | ||
remove.asciidoc | ||
rename.asciidoc | ||
reroute.asciidoc | ||
script.asciidoc | ||
set-security-user.asciidoc | ||
set.asciidoc | ||
sort.asciidoc | ||
split.asciidoc | ||
terminate.asciidoc | ||
trim.asciidoc | ||
uppercase.asciidoc | ||
uri-parts.asciidoc | ||
url-decode.asciidoc | ||
user-agent.asciidoc |