mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
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:
parent
2abdc3f4a2
commit
34429ee0f2
1 changed files with 2 additions and 2 deletions
|
@ -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 }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue