Is there anyone to help??
Please give me a example about xml filter..
I want to parse this xml source.
<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>
<m2m:cin
xmlns:m2m=\"http://www.onem2m.org/xml/protocols\"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">
<ty>4</ty>
<ri>CI00000000001244656716</ri>
<rn>CI00000000001244656716</rn>
<pi>CT00000000000000046769</pi>
<ct>2018-02-05T15:06:30+09:00</ct>
<lt>2018-02-05T15:06:30+09:00</lt>
<ppt>
<gwl>36.83115, 127.11185, 76</gwl>
<geui>0017b2fffe0ad93e</geui>
</ppt>
<sr>/0240771000000168/v1_0/remoteCSE-00000168000c05c016104807/container-LoRa//subscription-SS00000000000000261472</sr>
<et>2018-02-06T15:06:30+09:00</et>
<st>11785</st>
<cr>RC00000000000000050648</cr>
<cnf>LoRa/Sensor</cnf>
<cs>76</cs>
<con>010400003039499602d2499602d203e703e70000000003e703e70000000000000000fff51234</con>
</m2m:cin>
I want only information about con tags. Like this:
con : 010400003039499602d2499602d203e703e70000000003e703e70000000000000000fff51234
My Logstash conf setting is like this :
input {
http{
}
}
filter {
xml {
}
}
output {
elasticsearch {
index => "parse"
hosts => "localhost:9200"
}
stdout {
codec => rubydebug
}
}