- Skip empty strings

This commit is contained in:
Jordan Sissel 2011-01-05 11:58:13 -08:00
parent de7bae0e24
commit 0dbc3231ae

View file

@ -61,7 +61,9 @@ class LogStash::Filters::Grok < LogStash::Filters::Base
event.fields[key] = []
end
event.fields[key] << value
if value && !value.empty?
event.fields[key] << value
end
end
else
# Tag this event if we can't parse it. We can use this later to