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.
This commit is contained in:
Jake Landis 2019-10-08 17:23:38 -05:00 committed by GitHub
parent 96b36b5a8c
commit a6b0ae7f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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`"
}
}