How can i configure ElasticSearch to delete logs passed 1 month, or if there is no sush conf, how can i call api delete from java client
i want to send post with authentification and with query for delete :
json = {
"query": {
"range": {
"@timestamp": {
"lte": "now-10d"
}
}
}
}