terminate.asciidoc 774 B

123456789101112131415161718192021222324252627282930
  1. [[terminate-processor]]
  2. === Terminate processor
  3. ++++
  4. <titleabbrev>Terminate</titleabbrev>
  5. ++++
  6. Terminates the current ingest pipeline, causing no further processors to be run.
  7. This will normally be executed conditionally, using the `if` option.
  8. If this pipeline is being called from another pipeline, the calling pipeline is *not* terminated.
  9. [[terminate-options]]
  10. .Terminate Options
  11. [options="header"]
  12. |======
  13. | Name | Required | Default | Description
  14. include::common-options.asciidoc[]
  15. |======
  16. [source,js]
  17. --------------------------------------------------
  18. {
  19. "description" : "terminates the current pipeline if the error field is present",
  20. "terminate": {
  21. "if": "ctx.error != null"
  22. }
  23. }
  24. --------------------------------------------------
  25. // NOTCONSOLE