Logstash - XML parsing including nested objects

I would do that in ruby. This is an example of flattening objects. This is an example of stripping a prefix from a field name.

You might want to use something like

newK = k.sub(/\.([^.]*$)/, "\1")