Hello I have a XML file wich contains 10k+ elements, I played around with the XML filter for logstash wich only gives me arrays like this
"date" => [
[ 0] "Jun 21, 2013 1:48:43 PM",
[ 1] "Apr 22, 2013 12:16:00 PM",
[ 2] "Nov 7, 2012 5:11:03 PM",
[ 3] "Jun 21, 2013 1:45:02 PM",
[ 4] "Nov 7, 2012 4:40:02 PM",
[ 5] "Nov 7, 2012 5:05:08 PM",
[ 6] "Jun 21, 2013 3:29:40 PM",
[ 7] "Jan 9, 2013 2:02:57 PM",
[ 8] "Oct 26, 2012 12:27:21 PM",
[ 9] "Jan 4, 2013 11:26:43 AM",
[10] "Jan 9, 2013 12:16:03 PM",
[11] "Jan 8, 2013 12:01:31 PM",
[12] "Jan 7, 2013 2:53:45 PM",
[13] "Jan 4, 2013 11:30:23 AM",
[14] "Nov 7, 2012 10:37:08 AM",
[15] "Jan 9, 2013 1:57:47 PM",
[16] "Jan 4, 2013 11:33:38 AM",
[17] "Jan 9, 2013 1:57:49 PM",
[18] "Jan 4, 2013 12:05:24 PM",
[19] "Jan 9, 2013 6:17:33 PM",
[20] "Jan 9, 2013 1:57:53 PM",
[21] "Jan 8, 2013 7:52:05 AM",
[22] "Jun 24, 2013 4:31:18 PM"
],
Instead of 5 arrays containing the values, I'd like it to be split into multiple documents with a normal field and value
my pipline looks like this
filter {
xml {
source => "message"
store_xml => "false"
force_array => "false"
force_content => "true"
xpath => ["/memberrevisions/memberrevision/ID/text()","ID"]
xpath => ["/memberrevisions/memberrevision/author/text()","author"]
xpath => ["/memberrevisions/memberrevision/desc/text()","desc"]
xpath => ["/memberrevisions/memberrevision/date/text()","date"]
}
}