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.
This commit is contained in:
Ahil PonArul 2021-04-12 09:17:46 -04:00 committed by GitHub
parent 2abdc3f4a2
commit 34429ee0f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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