Browse Source

Fix bug in ingest node documentation (#45589)

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.
Jake Landis 6 years ago
parent
commit
9c388084d5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      docs/reference/ingest/ingest-node.asciidoc

+ 1 - 0
docs/reference/ingest/ingest-node.asciidoc

@@ -546,6 +546,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`"
       }
     }