From a6b0ae7f6903428250dc5656578d8d5f2f7b9d24 Mon Sep 17 00:00:00 2001 From: Jake Landis Date: Tue, 8 Oct 2019 17:23:38 -0500 Subject: [PATCH] Fix bug in ingest node documentation (#45589) (#47750) The "Conditionals with the Pipeline Processor" incorrectly documents how to create a pipeline of pipelines with a failure condition. The example as-is will always execute the fail processor. The change here updates the documentation to correct guard the fail processor with an if condition. --- docs/reference/ingest/ingest-node.asciidoc | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/reference/ingest/ingest-node.asciidoc b/docs/reference/ingest/ingest-node.asciidoc index 8cc9a630cb6..e9813f44f53 100644 --- a/docs/reference/ingest/ingest-node.asciidoc +++ b/docs/reference/ingest/ingest-node.asciidoc @@ -518,6 +518,7 @@ PUT _ingest/pipeline/logs_pipeline }, { "fail": { + "if": "ctx.service?.name != 'apache_httpd' && ctx.service?.name != 'syslog'", "message": "This pipeline requires service.name to be either `syslog` or `apache_httpd`" } }