Closed jarpy closed 9 years ago
The docs suggest that the match configuration option can still take an array, but the current code doesn't seem to like it.
match
Repro script:
echo 'banana 7' | /opt/logstash/bin/logstash -e ' input { stdin {} } filter { grok { match => [ "message", "%{WORD:word}", "%{POSINT:number}" ] } } output { stdout { codec => rubydebug } } '
Output:
Invalid setting for grok filter plugin: filter { grok { # This setting must be a hash # This field must contain an even number of items, got 3 match => ["message", "%{WORD:word}", "%{POSINT:number}"] ... } } {:level=>:error}
Pull request #45 removes documentation for the array syntax.
Fixed in #46
The docs suggest that the
match
configuration option can still take an array, but the current code doesn't seem to like it.Repro script:
Output: