Delete document from index starting with fuzzy match of document id

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!!

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.