I want the store_xml
setting of the xml
filter to store child elements of the input XML event as top-level fields.
Is this possible? Or should I create an issue in GitHub for this?
For example, given this input XML event:
<event>
<property1>v1</property1>
<property2>v2</property2>
</event>
I want this output:
"@timestamp":"...",
"property1":"v1",
"property2":"v2"
not, say:
"@timestamp":"...",
"xml_content": {
"property1":"v1",
"property2":"v2"
}
And to do that, I’d prefer not to mess around individually creating new top-level fields from the store_xml
target, and then removing that target (or using a target under @metadata
).
For example, is there some existing “Logstash field reference syntax” that I can use to represent “root” as the value of the target
setting?