I have to index dropped events from filter plugin into elastic search . below is a sample code.
filter{
grok {
match =>{ "message" => "(?<tran_type_isg>(?<=^.{58}).{3})(?<trash>.{11})(?<tran_type_ab>.{3})"}
}
#checking transaction type and parsing
if [tran_type_ab] == "ABC"{
#do something
match => { "message" => "(?<CRD_NO>(?<=^.{58}).{3})" }
}
else if [tran_type_ab] == "DEF"{
#do something
}
else{
drop{}
#how to index dropped events into elastic search?
}
}
I also would like to know the location where dropped events are placed if any?
thanks
for reading and helping