From 34429ee0f20b12524997db3344ccd71d6c872fb6 Mon Sep 17 00:00:00 2001 From: Ahil PonArul <29006086+turnUpTheChill@users.noreply.github.com> Date: Mon, 12 Apr 2021 09:17:46 -0400 Subject: [PATCH] updated distributor pattern section The conditionals in the distributor pattern section are not correct, as string comparisons require quotes around the value being compared against. Added quotes around them to fix this. --- docs/static/pipeline-pipeline-config.asciidoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/static/pipeline-pipeline-config.asciidoc b/docs/static/pipeline-pipeline-config.asciidoc index c946cb1ae..671258010 100644 --- a/docs/static/pipeline-pipeline-config.asciidoc +++ b/docs/static/pipeline-pipeline-config.asciidoc @@ -85,9 +85,9 @@ Here is an example distributor pattern configuration. config.string: | input { beats { port => 5044 } } output { - if [type] == apache { + if [type] == "apache" { pipeline { send_to => weblogs } - } else if [type] == system { + } else if [type] == "system" { pipeline { send_to => syslog } } else { pipeline { send_to => fallback }