We want to split a URL into it's path components and apply some logic based on parts of the URL.
Filter:
mutate {
copy => {"url" => "path"}
split => {"path" => "/"}
}
Result:
{
...
"url" => "/foo/bar/20771042",
"path" => "/foo/bar/20771042",
...
}
We were expecting an array but path looks (in LogStash console and Kibana) to be a simple string.
Using split => ["path", "/"] or split => {"path" => "\/"} makes no difference.
Shouldn't path become an array like ["foo", "bar", ...]?