Hi Team,
I am unable to convert data type in logstash, my configurations are shown below.
Logstash
filter{
if ("ccn" in [tags]) {
xml {
store_xml => false
source => "message"
xpath =>
[
"/mv/moid/text()", "ccncounters",
"/mv/r/text()", "r_value"
]
}
mutate {
convert => {
"r_value" => "integer"
}
}
kv{
source => "ccncounters"
field_split => ", "
}
}
}
sample logs
CcnCounters=SDP-Lookup-Failed-Subscriber-Not-Found, Source = _SYSTEM
6