I have XML with namespace in tag names and attribute names. Option remove_namespaces => true works fine on tags but keep attributes with original names.
Example XML:
<x:recording xmlns:x="http://someURI" x:ref="0000000" x:version="10">
<x:finalized>true</x:finalized>
<x:master>true</x:master>
</x:recording>
Event after XML filter:
"recording": {
"x:ref": "0000000"
"x:version": "10",
"master": {
"content": "true"
},
"finalized": {
"content": "true"
}
}
Logstash 6.5.1
I have XML with namespace in tag names and attribute names. Option remove_namespaces => true works fine on tags but keep attributes with original names.
Example XML:
<x:recording xmlns:x="http://someURI" x:ref="0000000" x:version="10">
<x:finalized>true</x:finalized>
<x:master>true</x:master>
</x:recording>
Event after XML filter:
"recording": {
"x:ref": "0000000"
"x:version": "10",
"master": {
"content": "true"
},
"finalized": {
"content": "true"
}
}
Logstash 6.5.1