I am trying to delete documents whose document_id starts with sid
output {
elasticsearch {
hosts => " xyz"
user => "xyz "
password => "xyz "
index => " xyz"
document_id => "%{sid}*"
action => 'delete'
}
}
suppose document_id = 1100-11-11
and sid = 1100
I want to delete this document_id using logstash
Thank you!!