-
Notifications
You must be signed in to change notification settings - Fork 41
Closed
Description
(This issue was originally filed by @markwalkom at elastic/logstash#2458)
If I have a KV document similar to this;
"sentence": "the quick brown fox, jumped over the duck", "author": "Mark Walkom"
And a LS config like;
input {
stdin {}
}
filter {
kv {
trim => "\""
trimkey => "\"\ \(\)"
field_split => ","
value_split => ":"
}
}
output {
stdout {
codec => rubydebug
}
}
The sentence field is split at the first comma which ends up dividing the string value and the loss of the data in the output;
$ echo ""sentence": "the quick brown fox, jumped over the duck", "author": "Mark Walkom""|bin/logstash agent -f kvbug.conf
Using milestone 2 filter plugin 'kv'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
{
"message" => "sentence: the quick brown fox, jumped over the duck, author: Mark Walkom",
"@version" => "1",
"@timestamp" => "2015-01-28T02:47:22.726Z",
"host" => "bender.local",
"sentence" => " the quick brown fox",
"author" => " Mark Walkom"
}Ideally it shouldn't do this and my sentence field would be complete.
Evesy
Metadata
Metadata
Assignees
Labels
No labels