EDIT -> I created a plugin for this, available here:
- https://rubygems.org/gems/logstash-filter-collect
- https://github.com/mikebski/logstash-filter-collect
You can install with bin/logstash-plugin install logstash-filter-collect
I have a logstash entry like:
"cvals" => [
[0] {
"text" => "cval something 1",
"indices" => [
[0] 17,
[1] 29
]
},
[1] {
"text" => "cval something else 2",
"indices" => [
[0] 17,
[1] 29
]
}
...
[n] {
"text" => "cval more stuff n",
"indices" => [
[0] 17,
[1] 29
]
}
]
I would like to mutate it to be:
"cvals_terms" => [ "cval something 1", "cval something else 2", ..., "cval more stuff n"]
How do I do this with Logstash? I could do it with a block of Ruby code, but there has to be a way to do it with mutate or something I think...